diff --git a/make_dev_container.sh b/make_dev_container.sh index 3410c24b..7cc3a74a 100755 --- a/make_dev_container.sh +++ b/make_dev_container.sh @@ -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