From 7686d0ca2e637fd004e4f716f0ba10bbf9a24b88 Mon Sep 17 00:00:00 2001 From: Cody Hiar Date: Mon, 12 Nov 2018 19:19:50 +0000 Subject: Initial commit --- Dockerfile | 10 ++++++++++ Makefile | 22 ++++++++++++++++++++++ README.md | 2 +- index.html | 12 ++++++++++++ startup.sh | 1 + 5 files changed, 46 insertions(+), 1 deletion(-) create mode 100644 Dockerfile create mode 100644 Makefile create mode 100644 index.html create mode 100755 startup.sh diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..f8581c1 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,10 @@ +FROM busybox + +MAINTAINER Cody Hiar /dev/null || echo 'No container to stop' + +clean: down ## Remove the container + docker rm $(CONTAINERNAME) 2> /dev/null || echo 'No container to remove' + +push: ## Push the container to dockerhub + docker push $(IMAGENAME) diff --git a/README.md b/README.md index 852b208..be27b71 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,2 @@ # docker-helloworld -A very simple docker example +A very simple dockerized `nc` webserver for testing docker setups. diff --git a/index.html b/index.html new file mode 100644 index 0000000..2738979 --- /dev/null +++ b/index.html @@ -0,0 +1,12 @@ +HTTP/1.1 200 OK +Content-Type: text/html; charset=UTF-8 +Server: netcat + + + + _ _ _ _ _ + | |__ ___| | | ___ __ _____ _ __| | __| | + | '_ \ / _ \ | |/ _ \ \ \ /\ / / _ \| '__| |/ _` | + | | | | __/ | | (_) | \ V V / (_) | | | | (_| | + |_| |_|\___|_|_|\___/ \_/\_/ \___/|_| |_|\__,_| + diff --git a/startup.sh b/startup.sh new file mode 100755 index 0000000..2230eac --- /dev/null +++ b/startup.sh @@ -0,0 +1 @@ +while true ; do nc -l -p 8000 < /opt/index.html ; done -- cgit v1.2.3