1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-01-08 04:04:42 +02:00

add delegated

This commit is contained in:
kev 2016-04-11 00:34:54 +08:00
parent 506d29c361
commit 1e57d7e2d1
5 changed files with 67 additions and 0 deletions

View File

@ -33,6 +33,7 @@ dockerfiles
- [x] clamav
- [x] collectd
- [x] dante
- [x] delegated
- [x] discuz :cn:
- [x] dnscrypt
- [x] dnscrypt-proxy

26
delegated/Dockerfile Normal file
View File

@ -0,0 +1,26 @@
#
# Dockerfile for delegated
#
FROM debian
MAINTAINER kev <noreply@datageek.info>
ENV DG_VERSION 9_9_13
ENV DG_FILE linux2.6-dg${DG_VERSION}.tar.gz
ENV DG_DIR dg${DG_VERSION}
ENV DG_URL http://delegate.hpcc.jp/anonftp/DeleGate/bin/linux/latest/${DG_FILE}
RUN set -xe \
&& apt-get update \
&& apt-get install -y wget \
&& wget ${DG_URL} -O ${DG_FILE} \
&& tar xzf ${DG_FILE} \
&& cp ${DG_DIR}/DGROOT/bin/${DG_DIR} /bin/delegated \
&& apt-get remove -y wget \
&& rm -rf ${DG_FILE} \
${DG_DIR} \
/var/lib/apt/lists/*
COPY delegated.conf /etc/
ENTRYPOINT ["/bin/delegated"]

30
delegated/README.md Normal file
View File

@ -0,0 +1,30 @@
delegated
=========
![](https://badge.imagelayers.io/vimagick/delegated:latest.svg)
[DeleGate][1] is a multipurpose proxy server which relays various application
protocols on TCP/IP or UDP/IP
## docker-compose.yml
```
delegated:
image: vimagick/delegated
command: "-P1080 SERVER=socks"
ports:
- "1080:1080"
restart: always
```
## up and running
```
# server
$ docker-compose up -d
# client
$ curl -x socks5h://localhost:1080 ifconfig.ovh
```
[1]: http://www.delegate.org/delegate/

4
delegated/delegated.conf Normal file
View File

@ -0,0 +1,4 @@
-f
ADMIN=admin@domain
DGROOT=/tmp
PERMIT='*:*:*'

View File

@ -0,0 +1,6 @@
delegated:
image: vimagick/delegated
command: "-P1080 SERVER=socks"
ports:
- "1080:1080"
restart: always