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 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 chmod +x /usr/local/bin/tutor
echo "=============== Building docker images"
tutor images env
tutor images build all
echo "=============== Configuring supervisor" echo "=============== Configuring supervisor"
echo "[program:tutor] echo "[program:tutor]
command=/usr/local/bin/tutor webui start command=/usr/local/bin/tutor webui start

View File

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