wizard fixup (#55)

* Retool dockerfile to stick to 3.7 & add maintainer, change wizard to not default always to "app", run when .env exists (like it does in the git tree)

* don't mix up microblog.pub v. micropub
This commit is contained in:
Jack Laxson
2019-06-17 16:55:39 -04:00
committed by Thomas Sileo
parent 42bf96e44a
commit f8d341f94a
3 changed files with 10 additions and 7 deletions

View File

@@ -2,13 +2,13 @@ PYTHON=python
SETUP_WIZARD_IMAGE=microblogpub-setup-wizard:latest
PWD=$(shell pwd)
# Build the config (will error if an existing config is found) via a Docker container
# Build the config (will error if an existing config/me.yml is found) via a Docker container
.PHONY: config
config:
# Build the container for the setup wizard on-the-fly
cd setup_wizard && docker build . -t $(SETUP_WIZARD_IMAGE)
# Run and remove instantly
-docker run --rm -it --volume $(PWD):/app/out $(SETUP_WIZARD_IMAGE)
-docker run -e MICROBLOGPUB_WIZARD_PROJECT_NAME --rm -it --volume $(PWD):/app/out $(SETUP_WIZARD_IMAGE)
# Finally, remove the tagged image
docker rmi $(SETUP_WIZARD_IMAGE)