This commit is contained in:
2019-04-14 19:34:54 +02:00
commit eeeae624e4
5 changed files with 118 additions and 0 deletions

30
Makefile Normal file
View File

@@ -0,0 +1,30 @@
APPLICATION_NAME := haproxy
IMAGE_NAME := $(APPLICATION_NAME)
HOST_PORT := 80
CONTAINER_PORT := 80
DOCKER := docker
DGOSS := dgoss
GIT := git
.PHONY: default help image test test-run enter
default: image
help:
@echo "There is no help."
$(IMAGE_NAME):
$(DOCKER) build -t $(IMAGE_NAME) .
image: $(IMAGE_NAME)
test:
$(DGOSS) run $(IMAGE_NAME)
test-run:
$(DOCKER) run -ti --rm -p $(HOST_PORT):$(CONTAINER_PORT) $(IMAGE_NAME)
enter:
$(DOCKER) run -ti --rm -p $(HOST_PORT):$(CONTAINER_PORT) --entrypoint /bin/bash $(IMAGE_NAME)