forked from deymonster/wbparser
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
24 lines (19 loc) · 779 Bytes
/
Makefile
File metadata and controls
24 lines (19 loc) · 779 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
THIS_FILE := $(lastword $(MAKEFILE_LIST))
.PHONY: help build run stop restart destroy log shell
help:
make -pRrq -f $(THIS_FILE) : 2>/dev/null | awk -v RS= -F: '/^# File/,/^# Finished Make data base/ {if ($$1 !~ "^[#.]") {print $$1}}' | sort | egrep -v -e '^[^[:alnum:]]' -e '^$@$$'
build:
docker-compose -f docker-compose.yaml build $(c)
run:
docker-compose -f docker-compose.yaml up -d $(c)
stop:
docker-compose -f docker-compose.yaml stop $(c)
restart:
docker-compose -f docker-compose.yaml stop $(c)
docker-compose -f docker-compose.yaml up -d $(c)
destroy:
docker-compose -f docker-compose.yaml down -v $(c)
log:
docker-compose -f docker-compose.yaml logs --tail=150 -f wb-parser-bot
shell:
docker-compose -f docker-compose.yaml exec wb-parser-bot /bin/bash