Skip to content

Commit 80111e8

Browse files
committed
init commit
0 parents  commit 80111e8

File tree

3 files changed

+60
-0
lines changed

3 files changed

+60
-0
lines changed

Dockerfile

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
FROM debian:latest
2+
3+
MAINTAINER Secbone <[email protected]>
4+
5+
ENV DEPENDENCIES build-essential autoconf libtool libssl-dev git-core
6+
ENV NORECOMMENDS asciidoc xmlto
7+
ENV BASEDIR /tmp/shadowsocks-libev
8+
9+
EXPOSE 8388
10+
11+
# Set up building environment
12+
RUN apt-get update
13+
RUN apt-get install -y $DEPENDENCIES
14+
RUN apt-get install -y $NORECOMMENDS --no-install-recommends
15+
16+
# Get the latest code, build and install
17+
RUN git clone https://github.com/shadowsocks/shadowsocks-libev.git $BASEDIR
18+
WORKDIR $BASEDIR
19+
RUN ./configure
20+
RUN make -j4
21+
RUN make install
22+
23+
WORKDIR /etc/init.d
24+
25+
# Tear down building environment and delete git repository
26+
RUN rm -rf $BASEDIR
27+
RUN apt-get --purge autoremove -y $DEPENDENCIES $NORECOMMENDS
28+
29+
ADD config.json /conf/shadowsocks.json
30+
31+
ENTRYPOINT ss-server -u -c /conf/shadowsocks.json -p 8388

README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Shadowsocks-libev for Docker
2+
3+
## Usage
4+
5+
```
6+
docker pull secbone/docker-ss-libev
7+
```
8+
9+
```
10+
docker run -d -p 8388:8388 secbone/docker-ss-libev
11+
12+
# custom config
13+
docker run -d -v /path/to/config.json:/conf/shadowsocks.json -p <yourport>:8388 secbone/docker-ss-libev
14+
```
15+
16+
## default config
17+
18+
- port: `8388`
19+
- password: `iachshea`
20+
- timeout: `60`
21+
- method: `aes-256-cfb`

config.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"server":"0.0.0.0",
3+
"local_address":"127.0.0.1",
4+
"local_port":1080,
5+
"password":"iachshea",
6+
"timeout":60,
7+
"method":"aes-256-cfb"
8+
}

0 commit comments

Comments
 (0)