Fix docker seed

This commit is contained in:
Mike Reeves
2020-01-13 16:07:08 -05:00
parent 385644757c
commit 28905a4319

View File

@@ -409,21 +409,24 @@ docker_install() {
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
yum -y update yum -y update
yum -y install docker-ce python36-docker yum -y install docker-ce python36-docker
# if [ $INSTALLTYPE != 'EVALMODE' ]; then if [ $INSTALLTYPE == 'MASTERONLY' ] || [ $INSTALLTYPE == 'EVALMODE' ]; then
# docker_registry docker_registry
# fi echo "Restarting Docker" >> $SETUPLOG 2>&1
docker_registry systemctl restart docker
echo "Restarting Docker" >> $SETUPLOG 2>&1 systemctl enable docker
systemctl restart docker docker_seed_registry >> $SETUPLOG 2>&1
systemctl enable docker else
docker_registry
echo "Restarting Docker" >> $SETUPLOG 2>&1
systemctl restart docker
systemctl enable docker
fi
else else
if [ $INSTALLTYPE == 'MASTERONLY' ] || [ $INSTALLTYPE == 'EVALMODE' ]; then if [ $INSTALLTYPE == 'MASTERONLY' ] || [ $INSTALLTYPE == 'EVALMODE' ]; then
apt-get update >> $SETUPLOG 2>&1 apt-get update >> $SETUPLOG 2>&1
apt-get -y install docker-ce python3-docker >> $SETUPLOG 2>&1 apt-get -y install docker-ce python3-docker >> $SETUPLOG 2>&1
# if [ $INSTALLTYPE != 'EVALMODE' ]; then
# docker_registry >> $SETUPLOG 2>&1
# fi
docker_registry >> $SETUPLOG 2>&1 docker_registry >> $SETUPLOG 2>&1
echo "Seeding the registry. This can take a bit" >> $SETUPLOG 2>&1 echo "Seeding the registry. This can take a bit" >> $SETUPLOG 2>&1
docker_seed_registry >> $SETUPLOG 2>&1 docker_seed_registry >> $SETUPLOG 2>&1