added xray plugin to shadowsocks
All checks were successful
CI / Build shadowsocks-rust docker images (push) Successful in 8m28s
All checks were successful
CI / Build shadowsocks-rust docker images (push) Successful in 8m28s
This commit is contained in:
@@ -42,6 +42,8 @@ RUN case "$TARGETPLATFORM" in \
|
|||||||
|
|
||||||
COPY download_v2ray.sh download_v2ray.sh
|
COPY download_v2ray.sh download_v2ray.sh
|
||||||
RUN ./download_v2ray.sh "$TARGETPLATFORM"
|
RUN ./download_v2ray.sh "$TARGETPLATFORM"
|
||||||
|
COPY download_xray.sh download_xray.sh
|
||||||
|
RUN ./download_xray.sh "$TARGETPLATFORM"
|
||||||
|
|
||||||
FROM busybox:musl AS sslocal
|
FROM busybox:musl AS sslocal
|
||||||
|
|
||||||
@@ -50,6 +52,7 @@ COPY --from=builder /root/shadowsocks-rust/target/release/sslocal /usr/bin/
|
|||||||
COPY --from=builder /root/shadowsocks-rust/examples/config.json /etc/shadowsocks-rust/
|
COPY --from=builder /root/shadowsocks-rust/examples/config.json /etc/shadowsocks-rust/
|
||||||
COPY --from=builder /root/shadowsocks-rust/docker/docker-entrypoint.sh /usr/bin/
|
COPY --from=builder /root/shadowsocks-rust/docker/docker-entrypoint.sh /usr/bin/
|
||||||
COPY --from=builder /tmp/v2ray-plugin /usr/bin/v2ray-plugin
|
COPY --from=builder /tmp/v2ray-plugin /usr/bin/v2ray-plugin
|
||||||
|
COPY --from=builder /tmp/xray-plugin /usr/bin/xray-plugin
|
||||||
|
|
||||||
ENTRYPOINT [ "docker-entrypoint.sh" ]
|
ENTRYPOINT [ "docker-entrypoint.sh" ]
|
||||||
CMD [ "sslocal", "--log-without-time", "-c", "/etc/shadowsocks-rust/config.json" ]
|
CMD [ "sslocal", "--log-without-time", "-c", "/etc/shadowsocks-rust/config.json" ]
|
||||||
@@ -60,6 +63,7 @@ COPY --from=builder /root/shadowsocks-rust/target/release/ssserver /usr/bin/
|
|||||||
COPY --from=builder /root/shadowsocks-rust/examples/config.json /etc/shadowsocks-rust/
|
COPY --from=builder /root/shadowsocks-rust/examples/config.json /etc/shadowsocks-rust/
|
||||||
COPY --from=builder /root/shadowsocks-rust/docker/docker-entrypoint.sh /usr/bin/
|
COPY --from=builder /root/shadowsocks-rust/docker/docker-entrypoint.sh /usr/bin/
|
||||||
COPY --from=builder /tmp/v2ray-plugin /usr/bin/v2ray-plugin
|
COPY --from=builder /tmp/v2ray-plugin /usr/bin/v2ray-plugin
|
||||||
|
COPY --from=builder /tmp/xray-plugin /usr/bin/xray-plugin
|
||||||
|
|
||||||
ENTRYPOINT [ "docker-entrypoint.sh" ]
|
ENTRYPOINT [ "docker-entrypoint.sh" ]
|
||||||
|
|
||||||
|
@@ -4,7 +4,7 @@ mkdir /tmp/v2ray_plugin.d
|
|||||||
cd /tmp/v2ray_plugin.d
|
cd /tmp/v2ray_plugin.d
|
||||||
case "$TARGETPLATFORM" in
|
case "$TARGETPLATFORM" in
|
||||||
"linux/386")
|
"linux/386")
|
||||||
url="curl -OJ https://gitea.woggioni.net/api/packages/woggioni/generic/v2ray_plugin-linux-386/v1.3.2-6-g5ffaa81/v2ray-plugin-linux-386-v1.3.2-6-g5ffaa81.tar.gz"
|
url="https://gitea.woggioni.net/api/packages/woggioni/generic/v2ray_plugin-linux-386/v1.3.2-6-g5ffaa81/v2ray-plugin-linux-386-v1.3.2-6-g5ffaa81.tar.gz"
|
||||||
curl --retry 3 "$url" | tar -xvz
|
curl --retry 3 "$url" | tar -xvz
|
||||||
mv v2ray-plugin* /tmp/v2ray-plugin
|
mv v2ray-plugin* /tmp/v2ray-plugin
|
||||||
;;
|
;;
|
||||||
|
25
shadowsocks-rust/download_xray.sh
Executable file
25
shadowsocks-rust/download_xray.sh
Executable file
@@ -0,0 +1,25 @@
|
|||||||
|
#!/usr/bin/env sh
|
||||||
|
TARGETPLATFORM=$1
|
||||||
|
PLUGIN_VERSION=1.8.24
|
||||||
|
mkdir /tmp/xray_plugin.d
|
||||||
|
cd /tmp/xray_plugin.d
|
||||||
|
case "$TARGETPLATFORM" in
|
||||||
|
"linux/386")
|
||||||
|
url="https://gitea.woggioni.net/api/packages/woggioni/generic/xray-plugin-386-linux/1.8.24/xray-plugin-linux-386-v1.8.24.tar.gz"
|
||||||
|
;;
|
||||||
|
"linux/amd64")
|
||||||
|
url="https://gitea.woggioni.net/api/packages/woggioni/generic/xray-plugin-amd64-linux/1.8.24/xray-plugin-linux-amd64-v1.8.24.tar.gz"
|
||||||
|
;;
|
||||||
|
"linux/arm64")
|
||||||
|
url="https://gitea.woggioni.net/api/packages/woggioni/generic/xray-plugin-arm64-linux/1.8.24/xray-plugin-linux-arm64-v1.8.24.tar.gz"
|
||||||
|
;;
|
||||||
|
"linux/arm/v7")
|
||||||
|
url="https://gitea.woggioni.net/api/packages/woggioni/generic/xray-plugin-arm-linux/1.8.24/xray-plugin-linux-arm-v1.8.24.tar.gz"
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo "Doesn't support $TARGETPLATFORM architecture"
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
curl --retry 3 "$url" | tar -xvz
|
||||||
|
mv xray-plugin* /tmp/xray-plugin
|
Reference in New Issue
Block a user