6
0
mirror of https://github.com/ChristianLight/tutor.git synced 2024-09-27 19:59:02 +00:00

Do not pull images as part of local quickstart

Pulling images is slow, often unnecessary, and sometimes suprising for
the user, as the newer images may break the older tutor version.
Instead, we add a "--pullimages" option to "quickstart" to explicitely
update docker images.
This commit is contained in:
Régis Behmo 2019-03-06 16:32:23 +01:00
parent 9d6874fc0e
commit 70d2ef37d3
2 changed files with 9 additions and 3 deletions

View File

@ -35,6 +35,10 @@ echo "=============== Installing tutor"
curl -L "https://github.com/regisb/tutor/releases/download/latest/tutor-$(uname -s)_$(uname -m)" -o /usr/local/bin/tutor
chmod +x /usr/local/bin/tutor
echo "=============== Building docker images"
tutor images env
tutor images build all
echo "=============== Configuring supervisor"
echo "[program:tutor]
command=/usr/local/bin/tutor webui start

View File

@ -23,16 +23,18 @@ def local():
@click.command(
help="Configure and run Open edX from scratch"
)
@click.option("-p", "--pullimages", "pullimages_", is_flag=True, help="Update docker images")
@opts.root
def quickstart(root):
def quickstart(pullimages_, root):
click.echo(fmt.title("Interactive platform configuration"))
tutor_config.interactive.callback(root, [])
click.echo(fmt.title("Environment generation"))
env.callback(root)
click.echo(fmt.title("Stopping any existing platform"))
stop.callback(root)
click.echo(fmt.title("Docker image updates"))
pullimages.callback(root)
if pullimages_:
click.echo(fmt.title("Docker image updates"))
pullimages.callback(root)
click.echo(fmt.title("Database creation and migrations"))
databases.callback(root)
click.echo(fmt.title("HTTPS certificates generation"))