Add simplifying startup commands to Makefile
This commit is contained in:
parent
184ce1b6b4
commit
ea104c0d19
12
Makefile
12
Makefile
@ -1,9 +1,10 @@
|
||||
# If you want you can use this Makefile to specify debug commands, test scripts, etc.
|
||||
|
||||
# Some examples below
|
||||
ID := $(shell docker ps | grep iot | awk '{print $$1}')
|
||||
|
||||
start:
|
||||
docker-compose build && docker-compose up -d
|
||||
docker-compose up --build -d
|
||||
|
||||
stop:
|
||||
docker-compose down
|
||||
|
||||
restart:
|
||||
docker-compose restart
|
||||
@ -13,3 +14,6 @@ build:
|
||||
|
||||
purge:
|
||||
docker-compose down -v --rmi all --remove-orphans
|
||||
|
||||
iot:
|
||||
docker exec -it $(ID) /bin/bash
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user