GitHubContribute in GitHub: Edit online

Upgrading the Hyper Protect Secure Build server

Complete the following steps:

  1. Export the state image to the Cloud Object Storage (COS) by following the instructions.

  2. Generate the new contract with both the workload and env sections. Use the workload section on this page, and in the env section, make sure that the volume name is hpsb. For more information about creating the contract, see About the contract.

  3. Create a new HPSB server as mentioned in the section Deploying the Hyper Protect Secure Build server by using the contract file.

  4. Initialize the configuration and then Import the state image from COS with same sbs-config.json in step 1.

    ./build.py init --env <path>/sbs-config.json
    
  5. Post the state image.

    ./build.py post-state-image -env <path>/sbs-config.json --name docker.io.<user_name>.sbs22.s390x-v0.1-60fd72e.2020-10-21_07-20-08.516797 {-state-bucket-name <your_bucket_name>}
    
    • Use the --state-bucket-name option, if you want to override the parameter in sbs-config.json or you don't have one in the file.
    • Use the --name option to specifiy the name of the state image on COS, which is the same as the name of the meta data file you downloaded with the get-state-image command.
  6. Update the configuration.

    ./build.py update --env <path>/sbs-config.json
    
  7. Verify the upgrade is completed.

    1. You can build your image using build command. Eventually your Docker image will be pushed to same registry.
    ./build.py build --env <path>/sbs-config.json
    
    1. Check the build log and wait until the build operation is completed.
    ./build.py log --log build --env <path>/sbs-config.json
    
    1. Check the status of HPSB.
    ./build.py status --env <path>/sbs-config.json