Initial add from Dockers repo

This commit is contained in:
Andrew Cutler
2015-09-25 14:36:57 +10:00
commit 66e60e46e3
8 changed files with 234 additions and 0 deletions

22
Makefile Normal file
View File

@@ -0,0 +1,22 @@
docker_tag = panubo/vsftpd
UNAME_S := $(shell uname -s)
ifeq ($(UNAME_S),Linux)
APP_HOST := localhost
endif
ifeq ($(UNAME_S),Darwin)
APP_HOST := $(shell docker-machine ip default)
endif
build:
docker build -t $(docker_tag) .
bash:
docker run --rm -it $(docker_tag) bash
run:
$(eval ID := $(shell docker run -d ${docker_tag}))
$(eval IP := $(shell docker inspect --format '{{ .NetworkSettings.IPAddress }}' ${ID}))
@echo "Running ${ID} @ ftp://${IP}"
@docker attach ${ID}
@docker kill ${ID}