Uploading the Image to AWS Container Registry (ECR)
Use the information in this section to upload the Protegrity Anonymization API image to the AWS container registry (ECR) for running the Protegrity Anonymization API in EKS.
Ensure that you have set up your Container Registry.
Note: The steps listed in this section for uploading the container images to the Amazon Elastic Container Repository (ECR) are for reference use. You can choose to use a different Container Registry for uploading the container images.
For more information about setting up Amazon ECR, refer to Moving an image through its lifecycle in Amazon ECR.
To install the Protegrity Anonymization API:
Log in to the machine as an administrator to install the Protegrity Anonymization API.
Install Docker using the steps provided at https://docs.docker.com/engine/install/.
Configure Docker to push the Protegrity Anonymization API images to the AWS Container Registry (ECR) by running following command:
aws ecr get-login-password --region <Region> | docker login --username AWS --password-stdin <AWS_account_ID>.dkr.ecr.<Region>.amazonaws.comObtain and extract the Protegrity Anonymization files to a directory on your system.
a. Download and extract the
ANON-API_RHUBI-ALL-64_x86-64_Generic.K8S_1.4.1.14.tgzfiles from the.tgzarchive.anonrestapi_1.4.1.14.tgzcluster-autoscaler-autodiscover.yamlcluster-aws.yamldependent_images.tgz
b. Extract the
anonrestapi_1.4.1.14.tgzfiles from the.tgzarchive.Anon_logs.shREADME.mdanonapi_1.4.1.14.tgzanonapi_helm_1.4.1.14.tgzcontractual.csv
Note: Do not extract the
anonapi_1.4.1.14.tgzpackage. This file must be loaded directly into Docker using the docker load command.Navigate to the directory where the following image packages are located.
dependent_images.tgzanonapi_1.4.1.14.tgz
Load the Docker image into Docker by using the following command:
a. Load the dependent images.
docker load < dependent_images.tgzb. Load the Protegrity Anonymization API image.
docker load < anonapi_1.4.1.14.tgzList the images that are loaded by using the following command:
docker imagesTag the image to the ECR repository by using the following command:
docker tag <Container image>:<Tag> <Container registry path>/<Container image>:<Tag>For example:
docker tag ANON-API_1.4.1.14:anon_EKS <account_name>.dkr.ecr.region.amazonaws.com/anon:anon_EKSPush the tagged image to the ECR by using the following command:
docker push <Container_regitry_path>/<Container_image>:<Tag>For example:
docker push <account_name>.dkr.ecr.region.amazonaws.com/anon:anon_EKS
The images are loaded to the ECR and are ready for deployment.
For more information about pushing container images to the ECR, refer to Moving an image through its lifecycle in Amazon ECR.
Feedback
Was this page helpful?