From 3eea052f47994d42d6e9121baf07410e086445f7 Mon Sep 17 00:00:00 2001 From: newnius Date: Tue, 13 Jun 2017 14:19:22 +0800 Subject: [PATCH] add tinyproxy --- tinyproxy/Dockerfile | 7 +++++++ tinyproxy/README.md | 8 ++++++++ tinyproxy/bootstrap.sh | 6 ++++++ 3 files changed, 21 insertions(+) create mode 100644 tinyproxy/Dockerfile create mode 100644 tinyproxy/README.md create mode 100755 tinyproxy/bootstrap.sh diff --git a/tinyproxy/Dockerfile b/tinyproxy/Dockerfile new file mode 100644 index 0000000..9dc1e7e --- /dev/null +++ b/tinyproxy/Dockerfile @@ -0,0 +1,7 @@ +FROM alpine:latest + +ADD bootstrap.sh /etc/bootstrap.sh + +RUN apk add --no-cache tinyproxy + +ENTRYPOINT ["/etc/bootstrap.sh"] diff --git a/tinyproxy/README.md b/tinyproxy/README.md new file mode 100644 index 0000000..eda4294 --- /dev/null +++ b/tinyproxy/README.md @@ -0,0 +1,8 @@ +https://github.com/tinyproxy/tinyproxy + + +docker service create \ +--name tinyproxy \ +--publish mode=host,published=8888,target=8888 \ +--mount type=bind,source=/mnt/data/tinyproxy,target=/etc/tinyproxy \ +newnius/tinyproxy diff --git a/tinyproxy/bootstrap.sh b/tinyproxy/bootstrap.sh new file mode 100755 index 0000000..d7d855b --- /dev/null +++ b/tinyproxy/bootstrap.sh @@ -0,0 +1,6 @@ +#! /bin/sh + +tinyproxy start + +# do nothing, just wait +while true; do sleep 1000; done