mirror of
https://github.com/newnius/Dockerfiles.git
synced 2025-06-06 08:11:54 +00:00
add rpi-shadowsocks
This commit is contained in:
parent
b5e3da77c1
commit
1e27bb23cb
19
rpi-shadowsocks/2.9.1/Dockerfile
Normal file
19
rpi-shadowsocks/2.9.1/Dockerfile
Normal file
@ -0,0 +1,19 @@
|
||||
FROM hypriot/rpi-alpine-scratch:v3.4
|
||||
|
||||
MAINTAINER Newnius <newnius.cn@gmail.com>
|
||||
|
||||
RUN apk update && \
|
||||
apk add python openssl && \
|
||||
rm -rf /var/cache/apk/*
|
||||
|
||||
RUN wget -O shadowsocks.tar.gz https://github.com/shadowsocks/shadowsocks/archive/2.9.1.tar.gz && \
|
||||
tar -xzf shadowsocks.tar.gz && \
|
||||
rm shadowsocks.tar.gz && \
|
||||
ln -s /shadowsocks-2.9.1 /shadowsocks
|
||||
|
||||
RUN echo '#!/bin/sh' > /usr/bin/ssserver && \
|
||||
echo 'python /shadowsocks/shadowsocks/server.py "$@"' >> /usr/bin/ssserver && \
|
||||
echo '#!/bin/sh' > /usr/bin/sslocal && \
|
||||
echo 'python /shadowsocks/shadowsocks/local.py "$@"' >> /usr/bin/sslocal && \
|
||||
chmod +x /usr/bin/ssserver && \
|
||||
chmod +x /usr/bin/sslocal
|
23
rpi-shadowsocks/2.9.1/README.md
Normal file
23
rpi-shadowsocks/2.9.1/README.md
Normal file
@ -0,0 +1,23 @@
|
||||
# Run shadowsocks in RaspberryPi
|
||||
|
||||
## Run as server
|
||||
```
|
||||
docker run \
|
||||
-d \
|
||||
--restart always \
|
||||
--publish 1080:1080 \
|
||||
--name shadowsocks \
|
||||
newnius/rpi-shadowsocks \
|
||||
ssserver -p 1080 -k PASSWORD -m aes-256-cfb
|
||||
```
|
||||
|
||||
## Run as client
|
||||
```
|
||||
docker run \
|
||||
-d \
|
||||
--restart always \
|
||||
--publish 1081:1081 \
|
||||
--name shadowsocks \
|
||||
newnius/rpi-shadowsocks \
|
||||
sslocal -s SERVER_IP -p 1080 -l 1081 -k PASSWORD -m aes-256-cfb
|
||||
```
|
Loading…
Reference in New Issue
Block a user