mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-01-08 04:04:42 +02:00
add delegated
This commit is contained in:
parent
506d29c361
commit
1e57d7e2d1
@ -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
26
delegated/Dockerfile
Normal 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
30
delegated/README.md
Normal 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
4
delegated/delegated.conf
Normal file
@ -0,0 +1,4 @@
|
||||
-f
|
||||
ADMIN=admin@domain
|
||||
DGROOT=/tmp
|
||||
PERMIT='*:*:*'
|
6
delegated/docker-compose.yml
Normal file
6
delegated/docker-compose.yml
Normal file
@ -0,0 +1,6 @@
|
||||
delegated:
|
||||
image: vimagick/delegated
|
||||
command: "-P1080 SERVER=socks"
|
||||
ports:
|
||||
- "1080:1080"
|
||||
restart: always
|
Loading…
Reference in New Issue
Block a user