Correct variable name to reflect what it's naming

IT's not the container name, it's the image name. Fix the name to be
less confusing.
This commit is contained in:
James Polley 2018-06-06 12:21:26 +10:00
parent ddae8d91f6
commit c8218bb9d0

View file

@ -1,6 +1,6 @@
#!/bin/bash -x
CONTAINER_NAME=${1:-symposion_app}
IMAGE_NAME=${1:-symposion_app}
if [ -e ./symposion-tools ]; then
pushd ./symposion-tools
@ -8,10 +8,10 @@ if [ -e ./symposion-tools ]; then
popd
fi
docker image build -f docker/Dockerfile -t ${CONTAINER_NAME} --target symposion_dev .
docker image build -f docker/Dockerfile -t ${IMAGE_NAME} --target symposion_dev .
docker container stop symposion
docker container rm symposion
docker container create --env-file docker/laptop-mode-env -p 28000:8000 -v $(pwd):/app/symposion_app --name symposion ${CONTAINER_NAME}
docker container create --env-file docker/laptop-mode-env -p 28000:8000 -v $(pwd):/app/symposion_app --name symposion ${IMAGE_NAME}
docker container start symposion
## When we started the container and mounted . into /app/symposion_app, it hides the static/build directory
## As a kludge, re-run collectstatic to recreate it