6
0
mirror of https://github.com/ChristianLight/tutor.git synced 2024-12-12 14:17:46 +00:00

Pull instead of build in cloud images

This is possible now that we pin docker image version. This should
result in faster image build.
This commit is contained in:
Régis Behmo 2019-06-24 11:39:55 +02:00
parent b7937c8c5b
commit ad8e513fd2

View File

@ -37,7 +37,7 @@ sudo curl -L "https://github.com/overhangio/tutor/releases/download/$TUTOR_VERSI
sudo chmod +x /usr/local/bin/tutor
echo "=============== Pulling vendor docker images"
tutor config save
tutor config save --set ACTIVATE_NOTES=true --set ACTIVATE_XQUEUE=true
tutor images pull elasticsearch
tutor images pull memcached
tutor images pull mongodb
@ -46,6 +46,9 @@ tutor images pull nginx
tutor images pull rabbitmq
tutor images pull smtp
echo "=============== Pulling openedx docker images"
tutor images pull all
echo "=============== Tagging vendor docker images"
docker tag $(tutor config printvalue DOCKER_IMAGE_ELASTICSEARCH) localhost:5000/$(tutor config printvalue DOCKER_IMAGE_ELASTICSEARCH)
docker tag $(tutor config printvalue DOCKER_IMAGE_MEMCACHED) localhost:5000/$(tutor config printvalue DOCKER_IMAGE_MEMCACHED)
@ -64,9 +67,9 @@ docker push localhost:5000/$(tutor config printvalue DOCKER_IMAGE_SMTP)
docker push localhost:5000/$(tutor config printvalue DOCKER_IMAGE_NGINX)
docker push localhost:5000/$(tutor config printvalue DOCKER_IMAGE_RABBITMQ)
echo "=============== Building openedx docker images"
tutor config save --set ACTIVATE_NOTES=true --set ACTIVATE_XQUEUE=true --set DOCKER_REGISTRY=localhost:5000/
tutor images build all
echo "=============== Pushing openedx docker images to the local registry"
tutor config save --set DOCKER_REGISTRY=localhost:5000/
tutor images push all
echo "=============== Create Web UI script"
echo '#! /bin/bash