Blueprint Developer Manual / Version 2010
Table Of ContentsWhat do you get?
When you are finished with all steps, you will have built the CoreMedia Blueprint Workspace and the required Docker images for all CoreMedia applications.
Step 1: Getting a Login for CoreMedia
Goal
You have a login to the CoreMedia software download page, the contributions GitHub repository, the documentation and the CoreMedia artifact repository.
Steps
Ask your project manager for your company's account details or contact the CoreMedia support. Keep in mind, that you have to ask explicitly for the access rights to the CoreMedia GitHub contributions repository. See CoreMedia's website for the contact information of the support at http://www.coremedia.com/support.
Check
Got to https://documentation.coremedia.com/cmcc-10 and https://github.com/coremedia-contributions/coremedia-blueprints-workspace and enter your credentials. You should be able to use the online documentation and see the contributions repository.
Step 2: Getting License Files for the CoreMedia System
Goal
You have licenses for the CoreMedia system.
Steps
Ask your project manager, your key account manager or your partner manager for the CoreMedia licenses.
Check
You have a Zip file that contains three zipped license files.
Further Reading
See Section 4.6, “CoreMedia Licenses” in Operations Basics for details about the license file format.
Step 3: Checking the Hardware Requirements
Goal
You are sure, that your computer meets the hardware requirements as described in Section 3.1, “Prerequisites”.
Step 4: Checking and Installing all Required Third-Party Software
Goal
All required third-party software (such as Java, Git, Maven, Sencha Cmd ...) is installed on your computer and has the right version.
Steps
Open the supported environments document at http://bit.ly/cmcc-10-supported-environments and check that you have installed the right version of Java and that you have the right OS. The
JAVA_HOME
variable must be set.Check that you have Maven 3.6.1 installed.
Check that Sencha Cmd 7.2.0 is installed on your computer.
Some Maven modules need more memory than Sencha Cmd provides per default. You can pass additional JVM options via the
jangaroo-maven-plugin
in thepom.xml
of the corresponding module by using thesenchaJvmArgs
configuration. For thestudio-base-app
this value is already set to-Xms512m -Xmx2048m
and can be overridden via the maven propertystudio-base-app.senchaJvmArgs
.Check that Docker is installed on your computer. See Section 3.2.2.1.1, “Docker Installation” for installation instructions.
Further reading
Section 3.1, “Prerequisites” describes the required software in more detail.
Step 5: Cloning the Workspace
Goal
You have the CoreMedia Blueprint workspace on your hard disk.
Steps
Make sure that you have access to https://github.com/coremedia-contributions/coremedia-blueprints-workspace. If you encounter a 404 error, then you are probably not logged in at GitHub or you do not have sufficient permissions yet.
When you use a Windows system, make sure that the Git configuration parameter
core.autocrlf
is set to "input". Otherwise, some init files will not run properly in your test machine. Because on checkout, Git would change the line endings to Windows style.On your local machine, clone the repository into a directory
blueprint
using Git:Warning
Path length limitation in Windows
The CoreMedia Blueprint workspace contains long paths and deeply nested folders. If you install the CoreMedia Blueprint workspace in a Windows environment, keep the installation path shorter than 25 characters. Otherwise, unzipping the workspace might fail or might lead to missing files due to the 260 bytes path limit of Windows.
git clone https://github.com/coremedia-contributions/coremedia-blueprints-workspace blueprint
In the cloned repository, get a list of all tags:
git tag
Create your working branch from the tag you want to use as your starting point:
git checkout -b <yourBranchName> <tagName>
Check
The Git clone command has succeeded.
Further reading
Chapter 4, Blueprint Workspace for Developers describes the structure of the workspace, the concepts behind the workspace and how you can work with the workspace.
Section 4.2.2, “Configuring the Workspace” describes further configuration of the workspace which is required for development and deployment.
On https://releases.coremedia.com/cmcc-10 click the link to the latest download to find a description on how to download a specific release.
Step 6: Getting the Blob Demo Content
Goal
The workspace contains the blob files of the CoreMedia demo content (videos, images, ...).
Steps
Open the releases site https://releases.coremedia.com/cmcc-10 and click the link to the current release.
Click the "content-blobs archive" link on the site and download the file.
Extract the archive over the workspace you have cloned in step 5.
Step 7: Configuring the Repository Settings and Check Maven Configuration
Goal
Your Maven settings.xml
file contains the settings required to connect with
the CoreMedia Nexus repository.
Steps
Follow the steps described in Section 3.1, “Prerequisites”.
Check
When you build the workspace, all artifacts are found.
Step 8: Building the Workspace
Goal
The workspace has been build, so that all artifacts and Docker images are built. The build takes some time. On an Intel i7 processor with 16GB RAM around 20 minutes.
Steps
In the main directory of the workspace call:
mvn clean install -DskipTests -Pwith-docker
Check
The Maven build ends with message "Build successful".
Further reading
Section 4.2.1, “Removing Optional Components” describes how you can remove parts of the workspace that you do not need.
Section 4.2.3, “In-Memory Replacement for MongoDB-Based Services” describes how you can replace MongoDB for Studio services with an in-memory solution.