Creating a Package Job
The image package can be generated with a few clicks in job building. In this way, the entire process of package obtainment, and image compilation and archiving is automatically implemented.
Prerequisites
- A cluster has been created. For details, see Kubernetes Clusters.
- You have bound an elastic IP address to the build node by referring to Assigning an EIP and Binding It to an ECS.
Procedure
- Log in to the ServiceStage, choose Continuous Delivery > Build, and click Create Package Job.
- Enter Job Name.
- Specify Enterprise Project.
Provides a cloud resource management mode, in which cloud resources and members are centrally managed by project.
It is available after the enterprise center is enabled.
- (Optional) Enter a job description.
- Set the package source.
The following upload modes are supported:
1. Select the corresponding software package from the SWR software repository. You need to upload the software package to the software repository in advance. For details, see Uploading the Software Package.
2. Select the corresponding software package from OBS. You need to upload the software package to the OBS bucket in advance. For details, see Uploading a File.
Click Select Package and select the corresponding software package.
- Select a build type.
- System default
- Select a basic image, which must be the same as the software package compilation language selected in 5.
- Select a basic image tag.
- Customize Dockerfile
- System default
- Sets the 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.
- Select the address for archiving the image.
- Select a cluster.
- Build with shared cluster
Use the shared cluster allocated by the system. The shared cluster supports Hybrid Cluster and Kunpeng Cluster.
- Build with your own cluster
If you use your own cluster to perform build task, you can deliver build task to fixed nodes through node labels. For details about how to add filter labels, see Node Management.
- Build with shared cluster
- Click Build Now to start the build.
Click Save to save the settings (not to start the build).
Related Operations
After an application component is successfully built, you can manage it on ServiceStage. For details, see Deployment Mode.
Maintenance
| Operation | Description |
|---|---|
| Query details/build history |
|
| Build Now | Click Build Now in the Operations column of a job. |
| Edit | Choose More > Edit in the Operations column of the target job. |
| Delete | Choose More > Delete in the Operations column of the target job. |
Last Article: Creating a Common Job
Next Article: Managing Pipelines
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.