diff options
| author | Radosław Piliszek <radoslaw.piliszek@gmail.com> | 2019-09-19 09:09:05 +0200 |
|---|---|---|
| committer | Radosław Piliszek <radoslaw.piliszek@gmail.com> | 2019-09-19 10:31:41 +0200 |
| commit | 1d0c1e51af4c125902efd09b2aaf06fb1977df6b (patch) | |
| tree | ec53e75e9932b381800e74d8942660a009bd2487 /tools | |
| parent | 52024d2c5746e8f6c2632e99e6cbfb201568aebc (diff) | |
| download | kolla-1d0c1e51af4c125902efd09b2aaf06fb1977df6b.tar.gz kolla-1d0c1e51af4c125902efd09b2aaf06fb1977df6b.zip | |
CI: Use docker mirror proxy
TODO: Debian build still requires access to original repo.
Change-Id: Ie4bac5334369a63793d36568a9d3a58a0cdc7667
Signed-off-by: Radosław Piliszek <radoslaw.piliszek@gmail.com>
Diffstat (limited to 'tools')
| -rwxr-xr-x | tools/setup_Debian.sh | 4 | ||||
| -rwxr-xr-x | tools/setup_RedHat.sh | 10 |
2 files changed, 9 insertions, 5 deletions
diff --git a/tools/setup_Debian.sh b/tools/setup_Debian.sh index 3a7e067c5..3fa8db98d 100755 --- a/tools/setup_Debian.sh +++ b/tools/setup_Debian.sh @@ -61,8 +61,8 @@ distro_codename=$(lsb_release -cs) sudo apt-get update sudo apt-get -y install apt-transport-https -sudo add-apt-repository "deb https://download.docker.com/linux/${distro_id} ${distro_codename} stable" -curl -fsSL https://download.docker.com/linux/${distro_id}/gpg | sudo apt-key add - +sudo add-apt-repository "deb $DOCKER_REPOS_MIRROR_URL/${distro_id} ${distro_codename} stable" +curl -fsSL $DOCKER_REPOS_MIRROR_URL/${distro_id}/gpg | sudo apt-key add - sudo apt-get update sudo apt-get -y install --no-install-recommends docker-ce diff --git a/tools/setup_RedHat.sh b/tools/setup_RedHat.sh index 67f4ca9bb..1c96100a0 100755 --- a/tools/setup_RedHat.sh +++ b/tools/setup_RedHat.sh @@ -6,9 +6,13 @@ set -o errexit # (SamYaple)TODO: Remove the path overriding export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" -sudo yum-config-manager \ - --add-repo \ - https://download.docker.com/linux/centos/docker-ce.repo +sudo tee /etc/yum.repos.d/docker-ce-stable.repo << EOF +[docker-ce-stable] +baseurl=$DOCKER_REPOS_MIRROR_URL/centos/7/\$basearch/stable +enabled=1 +gpgcheck=1 +gpgkey=$DOCKER_REPOS_MIRROR_URL/centos/gpg +EOF sudo yum -y install libffi-devel openssl-devel docker-ce btrfs-progs |
