-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 80111e8
Showing
3 changed files
with
60 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
FROM debian:latest | ||
|
||
MAINTAINER Secbone <[email protected]> | ||
|
||
ENV DEPENDENCIES build-essential autoconf libtool libssl-dev git-core | ||
ENV NORECOMMENDS asciidoc xmlto | ||
ENV BASEDIR /tmp/shadowsocks-libev | ||
|
||
EXPOSE 8388 | ||
|
||
# Set up building environment | ||
RUN apt-get update | ||
RUN apt-get install -y $DEPENDENCIES | ||
RUN apt-get install -y $NORECOMMENDS --no-install-recommends | ||
|
||
# Get the latest code, build and install | ||
RUN git clone https://github.com/shadowsocks/shadowsocks-libev.git $BASEDIR | ||
WORKDIR $BASEDIR | ||
RUN ./configure | ||
RUN make -j4 | ||
RUN make install | ||
|
||
WORKDIR /etc/init.d | ||
|
||
# Tear down building environment and delete git repository | ||
RUN rm -rf $BASEDIR | ||
RUN apt-get --purge autoremove -y $DEPENDENCIES $NORECOMMENDS | ||
|
||
ADD config.json /conf/shadowsocks.json | ||
|
||
ENTRYPOINT ss-server -u -c /conf/shadowsocks.json -p 8388 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Shadowsocks-libev for Docker | ||
|
||
## Usage | ||
|
||
``` | ||
docker pull secbone/docker-ss-libev | ||
``` | ||
|
||
``` | ||
docker run -d -p 8388:8388 secbone/docker-ss-libev | ||
# custom config | ||
docker run -d -v /path/to/config.json:/conf/shadowsocks.json -p <yourport>:8388 secbone/docker-ss-libev | ||
``` | ||
|
||
## default config | ||
|
||
- port: `8388` | ||
- password: `iachshea` | ||
- timeout: `60` | ||
- method: `aes-256-cfb` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"server":"0.0.0.0", | ||
"local_address":"127.0.0.1", | ||
"local_port":1080, | ||
"password":"iachshea", | ||
"timeout":60, | ||
"method":"aes-256-cfb" | ||
} |