Uploading the Image to the Azure Container Registry
Use the information in this section to upload the Docker image to the Azure Container Registry (ACR) for running the Protegrity Anonymization API in AKS.
Note: For more information about creating the Azure Container Registry, refer to Create an Azure container registry using the Azure portal.
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 Azure Container Registry (ACR) by running following command:
docker login <Container_registry_name>.azurecr.ioObtain 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.tgz
-cluster-autoscaler-autodiscover.yaml
-cluster-aws.yaml
-dependent_images.tgzb. Extract the
anonrestapi_1.4.1.14.tgzfiles from the.tgzarchive.
-Anon_logs.sh
-README.md
-anonapi_1.4.1.14.tgz
-anonapi_helm_1.4.1.14.tgz
-contractual.csv> **Note**: Do not extract the `anonapi_1.4.1.14.tgz` package. 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 ACR 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_AZ <container_registry_name>.azurecr.io/anon:anon_AZPush the tagged image to the ACR by using the following command:
docker push <Container_regitry_path>/<Container_image>:<Tag>For example:
docker push <container_registry_name>.azurecr.io/anon:anon_AZNote: Ensure that the appropriate path for the image registry along with the tag is updated in the
values.yamlfile.
The image is loaded to the ACR and is ready for deployment.
Feedback
Was this page helpful?