microblog.pub/Makefile

37 lines
1.3 KiB
Makefile
Raw Normal View History

PYTHON=python
2019-04-22 08:52:32 +00:00
SETUP_WIZARD_IMAGE=microblogpub-setup-wizard:latest
PWD=$(shell pwd)
2019-04-22 08:52:32 +00:00
.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)
# Finally, remove the tagged image
docker rmi $(SETUP_WIZARD_IMAGE)
2018-06-01 18:29:44 +00:00
2019-04-22 08:52:32 +00:00
.PHONY: reload-fed
2018-06-01 18:29:44 +00:00
reload-fed:
2018-07-12 22:45:29 +00:00
docker build . -t microblogpub:latest
2018-06-01 18:29:44 +00:00
docker-compose -p instance2 -f docker-compose-tests.yml stop
docker-compose -p instance1 -f docker-compose-tests.yml stop
WEB_PORT=5006 CONFIG_DIR=./tests/fixtures/instance1/config docker-compose -p instance1 -f docker-compose-tests.yml up -d --force-recreate --build
WEB_PORT=5007 CONFIG_DIR=./tests/fixtures/instance2/config docker-compose -p instance2 -f docker-compose-tests.yml up -d --force-recreate --build
2019-04-22 08:52:32 +00:00
.PHONY: poussetaches
2019-04-11 18:22:38 +00:00
poussetaches:
git clone https://github.com/tsileo/poussetaches.git pt && cd pt && docker build . -t poussetaches:latest && cd - && rm -rf pt
2019-04-22 08:52:32 +00:00
.PHONY: reload-dev
2018-07-14 10:14:08 +00:00
reload-dev:
2019-04-22 08:52:32 +00:00
docker build . -t microblogpub:latest
2018-07-14 10:14:08 +00:00
docker-compose -f docker-compose-dev.yml up -d --force-recreate
2019-04-22 08:52:32 +00:00
.PHONY: run
run:
2018-05-22 22:41:37 +00:00
git pull
2018-06-01 18:29:44 +00:00
docker build . -t microblogpub:latest
2018-06-23 10:19:34 +00:00
docker-compose stop
2018-05-22 22:41:37 +00:00
docker-compose up -d --force-recreate --build