-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
29 lines (23 loc) · 944 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#
# default target
#
## Show this help
help:
@fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | sed -e 's/:[^#]*##/ -- /' | sed 's/^##/\n##/'
## Generate README.md from the template
readme:
utils/generate_readme.sh
## Create docker image from Dockerfile
image:
sudo docker image build -t tokyoq/bankedits:latest .
## Create config.json file from template
twitconfig:
utils/generate_config.sh
## Run bankedits in the container
bankedits:
#sudo docker container run -d -v $PWD/config/config.json:/bankedits/config.json -v $PWD/config/ranges.json:/bankedits/ranges.json --name bankedits tokyoq/bankedits
sudo docker container run -d --mount type=bind,source=$(PWD)/config/config.json,target=/bankedits/config.json --mount type=bind,source=$(PWD)/config/ranges.json,target=/bankedits/ranges.json --name bankedits tokyoq/bankedits
## Stop bankedits
clean:
sudo docker container stop bankedits && \
sudo docker container rm bankedits