Uploading the Images to the Container Repository
Before you begin, ensure that you have set up your Container Registry.
To upload the images to the Container Repository:
Install Docker on the Linux instance.
For more information about installing Docker on a Linux machine, refer to the Docker documentation.
Run the following command to authenticate your Docker client to the Container registry.
In case of AWS ECR, run the following command.
aws ecr get-login-password --region <Name of ECR region where you want to upload the container image> | docker login --username AWS --password-stdin <aws_account_id>.dkr.ecr.<Name of ECR region where you want to upload the container image>.amazonaws.com
For more information about authenticating your Docker client to Amazon ECR, refer to the AWS CLI Command Reference documentation.
In case of Azure, run the following command:
docker login <Container Registry Name>.azurecr.io
Extract the installation package.
The AP-REST, RPProxy, Policy Loader, and KMSProxy container images are extracted.
For more information about extracting the installation package, refer to the section Extracting the Installation Package.
Perform the following steps to upload the AP-REST container image to the Container registry.
a. Run the following command to load the AP-REST container image into Docker.
docker load -i REST_RHUBI-9-64_x86-64_K8S_<Version>.tar.gzb. Run the following command to list the AP-REST container image.
docker imagesc. Tag the image to the Container registry by running the following command.
docker tag <Container image>:<Tag> <Container registry path>/<Container image>:<Tag>For example for AWS ECR:
docker tag ap-rest:AWS <aws_account_id>.dkr.ecr.us-east-1.amazonaws.com/ap-rest:AWSFor more information regarding tagging an image, refer to the section Pushing an image in the AWS documentation.
For example for Azure:
docker tag ap-rest:AZURE <Container Registry Name>.azurecr.io/ap-rest:AZUREd. Push the tagged image to the Container registry by running the following command.
docker push <Container registry path>/<Container image>:<Tag>For example for AWS:
docker push <aws_account_id>.dkr.ecr.us-east-1.amazonaws.com/ap-rest:AWSFor example for Azure:
docker push <Container Registry Name>.azurecr.io/ap-rest:AZUREFor more information about creating custom images, refer to the section Using Dockerfiles to Build Custom Images.
Navigate to the directory where you have extracted the Helm charts packages for the AP-REST containers.
In the values.yaml file, update the appropriate path for the iaprestImage setting, along with the tag.
Repeat steps 1 to 6 for uploading the respective images for RPProxy, Policy Loader, and KMSProxy.
Feedback
Was this page helpful?