- Add the demo applications from Git
- Configure the pipelines for the demo applications
- Run the each pipelines for the demo applications
Create a new ZCP Application with the Demo application and configure the pipeline to build it.
Add the demo applications from Git
Configure the source repository
First, clone the sample application.
In the left menu of the console, click Source under Dev Tools.
When the source repository's dashboard screen opens in a new window, click the Organization tab on the right.
Click tworld-skccproject in the organization list.
Click the + button in the top right corner and click the New Migration menu below.
Enter each item in the new migration screen with reference to the following:
In the URL address field, enter https://github.com/cloudz-modern-platform-demo/cloud-movie-demo.git.
Select tworld-skccproject in the Owner entry.
In the Repository name field, enter cloud-movie-demo.
Complete the replication of the sample application by clicking the Migrate Repository button at the bottom of the screen.
Create a develop branch in the cloned sample application.
Create a robot account for container image
Create a robot account in the project's registry to configure the container image.
In the left menu of the console, click Images under Dev Tools.
When the registry screen opens in a new window, click skccproject in the Projects list.
Click the Robot Accounts tab among the top tabs on the skccproject project screen.
Click the NEW ROBOT ACCOUNT button.
Enter cloud-movie in the Name field, select Never for the Expiration time field, and click the ADD button.
The Name and Token of the created robot account will be displayed. Since the Token value will not be displayed again, click the EXPORT TO FILE button at the bottom of the screen to save it as a separate file.
Create a demo application
Click Applications on the left menu of the console. Click the Create Application button at the top of the screen and select From Git Repository. Fill in each item on the screen with reference to the following information.
First, here is an explanation of the Application area.
Enter cloud-movie in the Name field.
Description of the Source Repository area.
To create a Secret in your Source Repository, click the Manage button next to the Secret entry.
Click the Add button at the top of the Secret pop-up screen. Enter cloud-movie-secret in Name, your user ID and password in Username and Password, and then click the Save button to complete saving and close the pop-up screen.
Enter https://git.skt.cloudzcp.com/tworld-skccproject/cloud-movie-demo.git in the Git Repository field.
For the Secret entry, select the cloud-movie-secret you created above and click the Test Connection button to test the connection and check the result.
Description of the Container Image area.
Description of the Container Image area.
Click the Add button at the top of the Secret pop-up screen. Enter cloud-movie-robot in Name, robot-skccproject+cloud-movie (the name of the robot account) in Username, and the token value of the robot account created above in Password. Then click the Save button to complete saving and close the pop-up screen.
Enter tworld-registry.skt.cloudzcp.com/skccproject/cloud-movie in the Image Repository field.
Check Yes for the Image Build item. If you do not check it, only the application build will be performed without building the image.
For the Secret item, select the cloud-movie-robot created above and click the Test Connection button to test the connection and check the result.
After checking the entered information, click the Save button to create the ZCP Application.
Configure the pipelines for the demo applications
Click the Build Pipeline tab. In the Demo application, two pipelines are created, one for development and one for production.
First, to create the development pipeline, enter or select the following information.
- Enter develop in the Pipeline Name field.
- Enter develop in the Branch field.
- Select maven in the Build Tool field.
- Select jdk-8 in the Jdk Version field.
- Enter clean package in the Maven Goals field.
- Enter develop in the Tag Prefix field.
To create a production pipeline, click the Add Pipeline button at the top of the screen.
A screen will be added at the bottom of the screen where you can enter a new pipeline. Please enter or select the following information.
Enter production in the Pipeline Name field.
Enter main in the Branch field.
Select maven in the Build Tool section.
Select jdk-8 in the Jdk Version field.
Enter clean package in the Maven Goals section.
Enter production in the Tag Prefix field.
After checking the entered information, click the Save button to complete pipeline creation.
Run the each pipelines for the demo applications
Click the Overview tab. The two pipelines you entered in the Build Pipeline tab are displayed.
First, build the develop pipeline. Click the Run button in the Actions section of the develop pipeline.
The Build Log pop-up screen displays the log of the console building the source code and pushing it to the registry in real time. When the build is complete, the Result item in the pop-up screen displays Success or Failed.
Build the production pipeline. Building the production pipeline proceeds in the same way as building the develop pipeline. When the builds of both pipelines are complete, the build results are displayed in the Overview tab as follows.
Online consultation
Contact us