first commit

This commit is contained in:
ben
2020-12-11 13:41:11 +01:00
commit 58c9a82364
4 changed files with 164 additions and 0 deletions

49
makefile Normal file
View File

@@ -0,0 +1,49 @@
#########################################
#VARIABLES: CAN BE EDITED
#########################################
CONTAINER=novnc
CONTNAME=$(CONTAINER)-1
DATAVOL=/home/docker/$(CONTAINER)/vol
#net=host: mandatory for others containers to connect to mysql
STARTOPT=-d \
-p 8091:8080 \
-v $(DATAVOL):/root \
--name $(CONTNAME) \
$(CONTAINER)
#########################################
# ACTIONS: DO NOT EDIT BEYOND THIS POINT
#########################################
build:
docker build -t $(CONTAINER) .
run:
docker run $(STARTOPT)
bash:
docker exec -i -t $(CONTNAME) /bin/bash
stop:
docker stop $(CONTNAME)
delete:
docker rm $(CONTNAME)
clear:
docker rmi -f $(CONTAINER)
install:
docker run --restart=always $(STARTOPT)
cleanupdb:
make stop;make delete
restart:
make stop;make delete ;make build ;make run