Setup Docker Registry
Steps to Setup Docker Registry
-
Create an Azure Docker Registry
-
Create Repositories in Docker Registry
Below are the list of images to be created in the Docker Registry:
- yeedu_reactive_actors
- yeedu_restful_api
- yeedu_rabbitmq
- yeedu_metadata_db
- yeedu_spark
- yeedu_nginx
- yeedu_cfe
- yeedu_redis
- yeedu_telegraf
- yeedu_grafana
- yeedu_influxdb
- yeedu_ldap
-
Pull tar files of Docker Images from Storage Account
Copy the docker image tar files from ADLS2 Storage account to the machine to convert the tars to docker images.
Reachout to Yeedu team to get the access to the ADLS2 Storage Account and container registry which have all the Yeedu tars and images.
azcopy copy <https://$storage_account_name.blob.core.windows.net/$container_name/path/to/image.tar> </local/path/to/image >
-
Load tar files to Docker Images
Once the tars are copied, run the below command to load each tar file.
docker load -i </path/to/image.tar>
-
Update Docker tag and push to Container Registry
After loading all the tars to docker images, update the docker tag of all images with the name of your container registry and push the image to the specified container registry.
docker tag <image_id> <your_container_registry/repository_name:tag>
docker push <your_container_registry/repository_name:tag>
Examples:
docker tag yeeduacr.azure.io/yeedu_cfe:1.1.2 your_registry_name.azurecr.io/yeedu_cfe:1.1.2
docker push registry_name.azurecr.io/yeedu_cfe:1.1.2