2018-06-03 14:27:35 +00:00
|
|
|
PYTHON=python
|
|
|
|
|
2018-05-18 18:41:41 +00:00
|
|
|
password:
|
2018-06-03 14:27:35 +00:00
|
|
|
$(PYTHON) -c "import bcrypt; from getpass import getpass; print(bcrypt.hashpw(getpass().encode('utf-8'), bcrypt.gensalt()).decode('utf-8'))"
|
2018-05-22 22:41:37 +00:00
|
|
|
|
2018-06-01 18:29:44 +00:00
|
|
|
docker:
|
|
|
|
mypy . --ignore-missing-imports
|
|
|
|
docker build . -t microblogpub:latest
|
|
|
|
|
|
|
|
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
|
|
|
|
|
2018-07-14 10:14:08 +00:00
|
|
|
reload-dev:
|
2018-09-06 17:19:47 +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-08 17:54:06 +00:00
|
|
|
update-poussetaches:
|
|
|
|
git clone https://github.com/tsileo/poussetaches.git tmp_poussetaches && cd tmp_poussetaches && docker build . -t poussetaches:latest && cd - && rm -rf tmp_poussetaches
|
|
|
|
|
2018-05-22 22:41:37 +00:00
|
|
|
update:
|
|
|
|
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
|