summaryrefslogtreecommitdiff
path: root/packaging/docker/onion
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordberg.se>2015-05-22 16:24:51 +0200
committerLinus Nordberg <linus@nordberg.se>2015-05-22 16:24:51 +0200
commitd9df4af0fcc91e1988a411892bba0b792ce62427 (patch)
treec0ce6c0fac4f932ca4a6e005da339d080432084a /packaging/docker/onion
parent0fe29c04e47b6660cf816f615537a61028c4deb9 (diff)
Moving docker stuff to its own repo (catlfish-dockerfiles).
Diffstat (limited to 'packaging/docker/onion')
-rw-r--r--packaging/docker/onion/Dockerfile11
-rw-r--r--packaging/docker/onion/start.sh20
2 files changed, 0 insertions, 31 deletions
diff --git a/packaging/docker/onion/Dockerfile b/packaging/docker/onion/Dockerfile
deleted file mode 100644
index c1cadcd..0000000
--- a/packaging/docker/onion/Dockerfile
+++ /dev/null
@@ -1,11 +0,0 @@
-FROM debian:jessie
-RUN apt-get update
-RUN echo 'debconf debconf/frontend select noninteractive' | debconf-set-selections
-RUN apt-get -y -q install tor
-RUN systemctl disable tor
-ADD start.sh /start.sh
-RUN chmod a+rx /start.sh
-VOLUME /etc/tor
-VOLUME /var/lib/tor/hs
-RUN chown -R debian-tor:debian-tor /var/lib/tor/hs
-ENTRYPOINT ["/start.sh"]
diff --git a/packaging/docker/onion/start.sh b/packaging/docker/onion/start.sh
deleted file mode 100644
index dce48af..0000000
--- a/packaging/docker/onion/start.sh
+++ /dev/null
@@ -1,20 +0,0 @@
-#! /bin/sh
-
-# BACKEND_PORT is set by `docker run --link BACKEND:foo' on the form
-# tcp://<ip>:<port>. See https://docs.docker.com/userguide/dockerlinks/.
-
-if [ -n "${HSPORT}" ]; then
- HSPORT=80 # Default localhost:80 -> .onion:80
- if [ -n "${BACKEND_PORT}" ]; then
- HSPORT="80 "$(echo ${BACKEND_PORT} | sed 's|^.*://||1')
- fi
-fi
-
-if ! [ -e /etc/tor/torrc ]; then
- echo "SocksPort 0" >> /etc/tor/torrc
- echo "DataDirectory /var/lib/tor" >> /etc/tor/torrc
- echo "HiddenServiceDir /var/lib/tor/hs" >> /etc/tor/torrc
- echo "HiddenServicePort ${HSPORT}" >> /etc/tor/torrc
-fi
-
-/usr/bin/tor -f /etc/tor/torrc --user debian-tor