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