Skip to content

Commit

Permalink
init commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Secbone committed Jul 10, 2016
0 parents commit 80111e8
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 0 deletions.
31 changes: 31 additions & 0 deletions Dockerfile
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
21 changes: 21 additions & 0 deletions README.md
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`
8 changes: 8 additions & 0 deletions config.json
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"
}

0 comments on commit 80111e8

Please sign in to comment.