Updated on 2023-06-25 GMT+08:00

Creating a Package Job

The image package can be generated with a few clicks in a build job. In this way, the entire process of package obtainment, and image compilation and archiving is automatically implemented.

Prerequisites

  1. A cluster has been created. For details, see Creating a CCE Cluster.
  2. An EIP has been bound to the build node. For details, see Assigning an EIP and Binding It to an ECS.

Procedure

  1. Log in to ServiceStage, choose Continuous Delivery > Build, and click Create Package Job.
  2. Enter Job Name.
  3. (Optional) Enter Description.
  4. Set Package Source.

    The following upload modes are supported:

    • Select the corresponding software package from the OBS bucket. You need to upload the software package to the OBS bucket in advance. For details, see Uploading a File.

    Click Select Software Package and select the corresponding software package.

  5. Select a build type.

    • System default
      1. Select a basic image, which must be the same as the software package compilation language selected in 4.
      2. Set Basic Image Tag.
    • Custom Dockerfile
      Enter custom commands in the compilation box.

      Exercise caution when inputting sensitive information in the echo, cat, or debug command, or encrypt sensitive information to avoid information leakage.

    • Image

      Select a basic image, which must be the same as the software package compilation language selected in 4.

  6. 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.

  7. Set Archived Image Address.
  8. Select Cluster.

    If you use the selected cluster to perform a build job, you can deliver the build job to a fixed node through node labels. For details about how to add a node label, see Adding a Node Label.

  9. 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 Deploying an Application Component.

Maintenance

Table 1 Maintenance

Operation

Description

Query details/build history

  1. Click the target build project and view the build history under Build Record.
  2. Click a record to view the record.

Build Now

Select the target build project and click Build Now in the Operation column.

Edit

Select the target build project and choose More > Edit in the Operation column to edit the build project.

Delete

  1. Select the target build project and choose More > Delete in the Operation column.
  2. Click OK.