Add simplifying startup commands to Makefile

This commit is contained in:
Tobias Eidelpes 2021-01-19 21:19:52 +01:00
parent 184ce1b6b4
commit ea104c0d19

View File

@ -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
@ -12,4 +13,7 @@ build:
docker-compose build
purge:
docker-compose down -v --rmi all --remove-orphans
docker-compose down -v --rmi all --remove-orphans
iot:
docker exec -it $(ID) /bin/bash