Contribute in GitHub:
Edit online
Upgrading the Hyper Protect Secure Build server
Complete the following steps:
-
Export the state image to the Cloud Object Storage (COS) by following the instructions.
-
Generate the new contract with both the
workload
andenv
sections. Use theworkload
section on this page, and in theenv
section, make sure that the volume name ishpsb
. For more information about creating the contract, see About the contract. -
Create a new HPSB server as mentioned in the section Deploying the Hyper Protect Secure Build server by using the contract file.
-
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
-
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 insbs-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 theget-state-image
command.
- Use the
-
Update the configuration.
./build.py update --env <path>/sbs-config.json
-
Verify the upgrade is completed.
- 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
- Check the build log and wait until the build operation is completed.
./build.py log --log build --env <path>/sbs-config.json
- Check the status of HPSB.
./build.py status --env <path>/sbs-config.json