From 3f3e66b14e560691f2ed9a61dd80ad3531377878 Mon Sep 17 00:00:00 2001 From: Subhas Dandapani Date: Sat, 3 Oct 2015 02:21:55 +0530 Subject: [PATCH] Everythings working --- .gitignore | 81 ++++++++++++++++++++++++++++++++++++++++++++ Dockerfile | 11 ++++++ README.md | 3 ++ runit/privoxy/config | 2 ++ runit/privoxy/run | 2 ++ runit/tor/run | 2 ++ 6 files changed, 101 insertions(+) create mode 100644 .gitignore create mode 100644 Dockerfile create mode 100644 README.md create mode 100644 runit/privoxy/config create mode 100755 runit/privoxy/run create mode 100755 runit/tor/run diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0714ae4 --- /dev/null +++ b/.gitignore @@ -0,0 +1,81 @@ +### +### +### +### +### !!!DO NOT EDIT!!! +### AUTO-GENERATED BY https://www.gitignore.io +### FOR CUSTOM RULES, SCROLL TO THE BOTTOM +### +### +### +### + +# Created by https://www.gitignore.io/api/linux,windows,osx + +### Linux ### +*~ + +# KDE directory preferences +.directory + +# Linux trash folder which might appear on any partition or disk +.Trash-* + + +### Windows ### +# Windows image file caches +Thumbs.db +ehthumbs.db + +# Folder config file +Desktop.ini + +# Recycle Bin used on file shares +$RECYCLE.BIN/ + +# Windows Installer files +*.cab +*.msi +*.msm +*.msp + +# Windows shortcuts +*.lnk + + +### OSX ### +.DS_Store +.AppleDouble +.LSOverride + +# Icon must end with two \r +Icon + + +# Thumbnails +._* + +# Files that might appear in the root of a volume +.DocumentRevisions-V100 +.fseventsd +.Spotlight-V100 +.TemporaryItems +.Trashes +.VolumeIcon.icns + +# Directories potentially created on remote AFP share +.AppleDB +.AppleDesktop +Network Trash Folder +Temporary Items +.apdisk + +### +### +### +### +### CUSTOM RULES GO HERE +### +### +### +### diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..dcbb0ae --- /dev/null +++ b/Dockerfile @@ -0,0 +1,11 @@ +FROM alpine:3.2 + +EXPOSE 8118 9050 + +RUN echo '@edge http://nl.alpinelinux.org/alpine/edge/main' >> /etc/apk/repositories && \ + echo '@testing http://nl.alpinelinux.org/alpine/edge/testing' >> /etc/apk/repositories && \ + apk --update add privoxy@edge tor@testing runit@testing + +COPY runit /runit + +CMD ["runsvdir", "/runit"] diff --git a/README.md b/README.md new file mode 100644 index 0000000..8dc6d3b --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# docker-tor-privoxy-alpine + +The smallest docker image with Tor and Privoxy, built with Alpine Linux. diff --git a/runit/privoxy/config b/runit/privoxy/config new file mode 100644 index 0000000..97233a1 --- /dev/null +++ b/runit/privoxy/config @@ -0,0 +1,2 @@ +listen-address 0.0.0.0:8118 +forward-socks5 / localhost:9050 . diff --git a/runit/privoxy/run b/runit/privoxy/run new file mode 100755 index 0000000..abe7a5e --- /dev/null +++ b/runit/privoxy/run @@ -0,0 +1,2 @@ +#!/bin/sh +privoxy --no-daemon diff --git a/runit/tor/run b/runit/tor/run new file mode 100755 index 0000000..d8c3138 --- /dev/null +++ b/runit/tor/run @@ -0,0 +1,2 @@ +#!/bin/sh +tor