Using quay.io registry in project
In order to avoid docker pull rate limit, this commit replaces images in the dockerhub to quay.io/openstack.trove Change-Id: I4fb7afd9f6a5d84578bb6226f8b2ff4b9908a526
This commit is contained in:
parent
ff502ae696
commit
0138ce30e2
@ -1,4 +1,4 @@
|
||||
FROM ubuntu:20.04
|
||||
FROM quay.io/openstack.trove/ubuntu:20.04
|
||||
LABEL maintainer="anlin.kong@gmail.com"
|
||||
|
||||
ARG DATASTORE="mysql"
|
||||
|
@ -526,10 +526,10 @@ function create_registry_container {
|
||||
echo "Running a docker registry container..."
|
||||
container=$(sudo docker ps -a --format "{{.Names}}" --filter name=registry)
|
||||
if [ -z $container ]; then
|
||||
sudo docker run -d --net=host -e REGISTRY_HTTP_ADDR=0.0.0.0:4000 --restart=always -v /opt/trove_registry/:/var/lib/registry --name registry registry:2
|
||||
sudo docker run -d --net=host -e REGISTRY_HTTP_ADDR=0.0.0.0:4000 --restart=always -v /opt/trove_registry/:/var/lib/registry --name registry quay.io/openstack.trove/registry:2
|
||||
for img in {"mysql:5.7","mysql:8.0","mariadb:10.4","postgres:12"};
|
||||
do
|
||||
sudo docker pull ${img} && sudo docker tag ${img} 127.0.0.1:4000/trove-datastores/${img} && sudo docker push 127.0.0.1:4000/trove-datastores/${img}
|
||||
sudo docker pull quay.io/openstack.trove/${img} && sudo docker tag quay.io/openstack.trove/${img} 127.0.0.1:4000/trove-datastores/${img} && sudo docker push 127.0.0.1:4000/trove-datastores/${img}
|
||||
done
|
||||
pushd $DEST/trove/backup
|
||||
# build backup images
|
||||
|
@ -94,9 +94,10 @@ if [ "$TROVE_ENABLE_LOCAL_REGISTRY" == "True" ] ; then
|
||||
TROVE_DATABASE_BACKUP_IMAGE_MARIADB=${TROVE_DATABASE_BACKUP_IMAGE_MARIADB:-"$TROVE_HOST_GATEWAY:4000/trove-datastores/db-backup-mariadb"}
|
||||
TROVE_DATABASE_BACKUP_IMAGE_POSTGRES=${TROVE_DATABASE_BACKUP_IMAGE_POSTGRES:-"$TROVE_HOST_GATEWAY:4000/trove-datastores/db-backup-postgresql"}
|
||||
else
|
||||
TROVE_DATABASE_IMAGE_MYSQL=${TROVE_DATABASE_IMAGE_MYSQL:-"docker.io/library/mysql"}
|
||||
TROVE_DATABASE_IMAGE_MARIADB=${TROVE_DATABASE_IMAGE_MARIAD:-"docker.io/library/mariadb"}
|
||||
TROVE_DATABASE_IMAGE_POSTGRES=${TROVE_DATABASE_IMAGE_POSTGRES:-"docker.io/library/postgres"}
|
||||
TROVE_DATABASE_BACKUP_IMAGE_MYSQL=${TROVE_DATABASE_BACKUP_IMAGE_MYSQL:-""}
|
||||
TROVE_DATABASE_BACKUP_IMAGE_POSTGRES=${TROVE_DATABASE_BACKUP_IMAGE_POSTGRES:-""}
|
||||
TROVE_DATABASE_IMAGE_MYSQL=${TROVE_DATABASE_IMAGE_MYSQL:-"quay.io/openstack.trove/mysql"}
|
||||
TROVE_DATABASE_IMAGE_MARIADB=${TROVE_DATABASE_IMAGE_MARIAD:-"quay.io/openstack.trove/mariadb"}
|
||||
TROVE_DATABASE_IMAGE_POSTGRES=${TROVE_DATABASE_IMAGE_POSTGRES:-"quay.io/openstack.trove/postgres"}
|
||||
TROVE_DATABASE_BACKUP_IMAGE_MYSQL=${TROVE_DATABASE_BACKUP_IMAGE_MYSQL:-"quay.io/openstack.trove/db-backup-mysql"}
|
||||
TROVE_DATABASE_BACKUP_IMAGE_MARIADB=${TROVE_DATABASE_BACKUP_IMAGE_MARIADB:-"quay.io/openstack.trove/db-backup-mariadb"}
|
||||
TROVE_DATABASE_BACKUP_IMAGE_POSTGRES=${TROVE_DATABASE_BACKUP_IMAGE_POSTGRES:-"quay.io/openstack.trove/db-backup-postgresql"}
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user