Update deb-mirror to download ubuntu docker image

This change updates the deb-mirror script download the ubuntu docker
image from mirror.fuel-infra.org because the version of docker provided
by Fuel 7.0 is no longer able to pull it down from the docker hub.

Change-Id: I5f7d95f4288520db4dc49557540ff1e8b569c2bb
Related-Bug: #1528498
This commit is contained in:
Alex Schultz 2016-01-06 16:18:28 -07:00 committed by Sergey Kulanov
parent 89f1ac62c3
commit 20f88c67c4
1 changed files with 1 additions and 0 deletions

View File

@ -477,6 +477,7 @@ export FUEL_VERSION
if [[ "$DOCKER_MODE" = "true" ]]; then
( docker ps -a | grep fuel-createmirror ) && docker rm -f fuel-createmirror
# docker pull ubuntu:latest
( docker images ubuntu | grep -q latest ) || ( wget http://mirror.fuel-infra.org/docker/ubuntu.trusty.tar.xz -O /tmp/ubuntu.trusty.tar.xz && docker load -i /tmp/ubuntu.trusty.tar.xz && rm -f /tmp/ubuntu.trusty.tar.xz )
docker -D run -d --name=fuel-createmirror --net=host -a stdout -a stderr -t \
-e UBUNTU_RELEASE=$UBUNTU_RELEASE -e UBUNTU_NETBOOT_FLAVOR=$UBUNTU_NETBOOT_FLAVOR \
-e UBUNTU_INSTALLER_KERNEL_VERSION=$UBUNTU_INSTALLER_KERNEL_VERSION -e UBUNTU_KERNEL_FLAVOR=$UBUNTU_KERNEL_FLAVOR \