From d9df4af0fcc91e1988a411892bba0b792ce62427 Mon Sep 17 00:00:00 2001 From: Linus Nordberg Date: Fri, 22 May 2015 16:24:51 +0200 Subject: Moving docker stuff to its own repo (catlfish-dockerfiles). --- packaging/docker/onion/Dockerfile | 11 ----------- packaging/docker/onion/start.sh | 20 -------------------- 2 files changed, 31 deletions(-) delete mode 100644 packaging/docker/onion/Dockerfile delete mode 100644 packaging/docker/onion/start.sh (limited to 'packaging/docker/onion') 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://:. 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 -- cgit v1.1