mirror of
https://git.sr.ht/~tsileo/microblog.pub
synced 2024-11-14 18:54:27 +00:00
28 lines
1.1 KiB
Makefile
28 lines
1.1 KiB
Makefile
PYTHON=python
|
|
|
|
password:
|
|
$(PYTHON) -c "import bcrypt; from getpass import getpass; print(bcrypt.hashpw(getpass().encode('utf-8'), bcrypt.gensalt()).decode('utf-8'))"
|
|
|
|
docker:
|
|
mypy . --ignore-missing-imports
|
|
docker build . -t microblogpub:latest
|
|
|
|
reload-fed:
|
|
docker build . -t microblogpub:latest
|
|
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
|
|
|
|
reload-dev:
|
|
# docker build . -t microblogpub:latest
|
|
docker-compose -f docker-compose-dev.yml up -d --force-recreate
|
|
|
|
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
|
|
|
|
update:
|
|
git pull
|
|
docker build . -t microblogpub:latest
|
|
docker-compose stop
|
|
docker-compose up -d --force-recreate --build
|