medved/Makefile

39 lines
628 B
Makefile
Raw Normal View History

2018-04-02 22:41:10 +00:00
all: down clean base bup
base:
docker build -t medved_base .
basenc:
docker build -t medved_base . --no-cache
up:
docker-compose up --scale worker=$(workers)
2018-04-02 22:41:10 +00:00
upd:
2019-07-17 14:16:17 +00:00
docker-compose up -d --scale worker=$(workers)
2018-04-02 22:41:10 +00:00
bup:
docker-compose up --build
bupd:
docker-compose up --build -d
bupds:
docker-compose up --build -d --scale worker=5
down:
docker-compose down
test:
docker build -t medved_base_test -f Dockerfile.test .
clean:
find -iname *.pyc -delete
find -type d -name __pycache__ -delete
sudo rm -vf *.log
sudo rm -f config.json
cleandb:
sudo rm -rfv docker/lib/mongo/*
sudo rm -rfv docker/lib/redis/*