mirror of
https://github.com/ChristianLight/tutor.git
synced 2024-11-09 23:00:59 +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:
parent
b7937c8c5b
commit
ad8e513fd2
11
cloud/aws.sh
11
cloud/aws.sh
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user