Building an Application Component
Before deploying ServiceStage, you need to build the software package into an image or build the source code into a software package. Therefore, after you set the application source when creating an application component, ServiceStage generates a build job for the application component.
Components whose runtime system is Docker cannot be built.
Viewing Application Component Building
- Log in to ServiceStage, choose Application Management > Application List, and click an application to go to the Overview page.
- On the Component List tab, click a component to go to the Overview page.
- Click the Build Job tab to view the status of the application component build job.
Maintaining a Build Job
Operation |
Operation Description |
---|---|
Edit |
Click Edit to go to the build job configuration page. For details, see Editing a Package Build Job or Editing a Source Code Job. |
Build Now |
Click Build Now to start a build job. |
Query details/build history |
|
Editing a Package Build Job
- Log in to ServiceStage, choose Application Management > Application List, and click an application to go to the Overview page.
- On the Component List tab, click a component to go to the Overview page.
- Click the Build Job tab and click Edit. The build job configuration page is displayed.
- (Optional) Set Description.
- Set Build Type.
- System default
- Select the language of the basic image, which must be the same as that of the software package.
- Set Basic Image Tag.
The build node can download basic images only when it can access the public network.
- Custom Dockerfile
- Image
- System default
- Set Image Class.
- Public: This is a widely used standard image that contains an OS and pre-installed public applications and is visible to all users. You can configure the applications or software in the public image as needed.
- Private: A private image contains an OS or service data, pre-installed public applications, and private applications. It is available only to the user who created it.
- Set Archived Image Address.
- Select Cluster.
- (Optional) Specify Node Label to deliver the build job to a fixed node based on the node label.
- Click Build Now to start the build.
Click Save to save the settings (not to start the build).
Editing a Source Code Job
- Log in to ServiceStage, choose Application Management > Application List, and click an application to go to the Overview page.
- On the Component List tab, click a component to go to the Overview page.
- Click the Build Job tab and click Edit. The build job configuration page is displayed.
- (Optional) Set Description.
- Select Cluster.
- (Optional) Specify Node Label to deliver the build job to a fixed node based on the node label.
- Click Next.
- Set the environment.
- Edit a build template.
Select Maven, Ant, Gradle, Go, Docker, or Build Common Cmd. You can compile and archive binary packages or Docker images at the same time.
- Select an archive mode.
- Publish Build Artifact: Binary package archive plug-in, archived to the SWR software repository.
- Publish Build Image: Image archive plug-in, archived to the SWR image repository.
- Edit a build template.
- Click Build to save the settings and start the build.
Click Save to save the settings (not to start the build).
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot