Use Docker registry when pulling images

Let's pull needed images from repo-clones docker registry to avoid
reaching the Docker Hub rate limit

Task-number: QTQAINFRA-5428
Pick-to: 6.4
Change-Id: I1305ac54e68e962f52bf435c5578248d0ada02db
Reviewed-by: Jani Heikkinen <jani.heikkinen@qt.io>
This commit is contained in:
Heikki Halmet
2023-02-22 13:01:18 +00:00
parent 81d4943e27
commit af58d89b61

View File

@@ -2,7 +2,7 @@
#############################################################################
##
## Copyright (C) 2022 The Qt Company Ltd.
## Copyright (C) 2023 The Qt Company Ltd.
## Contact: https://www.qt.io/licensing/
##
## This file is part of the provisioning scripts of the Qt Toolkit.
@@ -79,6 +79,17 @@ rm ./docker-compose*
# Install Avahi to discover Docker containers in the test network
sudo apt-get install avahi-daemon -y
# Add registry mirror for docker images
sudo tee -a /etc/docker/daemon.json <<"EOF"
{
"registry-mirrors": ["http://repo-clones.ci.qt.io:5000"]
}
EOF
echo "Restart Docker"
sudo systemctl daemon-reload
sudo systemctl restart docker
# Start testserver provisioning
sudo "$(readlink -f $(dirname ${BASH_SOURCE[0]}))/../common/shared/testserver/docker_testserver.sh"