first commit

This commit is contained in:
ben
2020-12-06 10:02:08 +01:00
commit 6d2e35dddf
3 changed files with 65 additions and 0 deletions

44
makefile Normal file
View File

@@ -0,0 +1,44 @@
#########################################
#VARIABLES: CAN BE EDITED
#########################################
CONTAINER=test
CONTNAME=$(CONTAINER)-1
DATAVOLUME=$(shell pwd)
#net=host: mandatory for others containers to connect to mysql
STARTOPT=-d \
-p 22122:22 \
--name $(CONTNAME) \
$(CONTAINER)
#########################################
# ACTIONS: DO NOT EDIT BEYOND THIS POINT
#########################################
build:
docker build -t $(CONTAINER) .
build-nocache:
docker build --no-cache -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)