mirror of
https://github.com/aljazceru/cyphernode.git
synced 2026-01-04 13:35:28 +01:00
OTS not TORified thanks to proxychains-ng, better TORification
This commit is contained in:
@@ -1,3 +1,14 @@
|
||||
FROM alpine:3.9 as builder
|
||||
|
||||
RUN apk add --no-cache --update alpine-sdk bsd-compat-headers \
|
||||
&& git clone https://github.com/Kexkey/proxychains-ng.git
|
||||
|
||||
RUN cd /proxychains-ng \
|
||||
&& ./configure \
|
||||
&& make \
|
||||
&& make install \
|
||||
&& make install-config
|
||||
|
||||
FROM node:11.1-alpine
|
||||
|
||||
RUN apk add --update --no-cache \
|
||||
@@ -13,6 +24,10 @@ RUN apk add --update --no-cache \
|
||||
|
||||
WORKDIR /script
|
||||
|
||||
COPY --from=builder /usr/local/etc/proxychains.conf /usr/local/etc/proxychains.conf
|
||||
COPY --from=builder /usr/local/bin/proxychains4 /usr/local/bin/proxychains4
|
||||
COPY --from=builder /usr/local/lib/libproxychains4.so /usr/local/lib/libproxychains4.so
|
||||
|
||||
COPY script/otsclient.sh /script/otsclient.sh
|
||||
COPY script/requesthandler.sh /script/requesthandler.sh
|
||||
COPY script/responsetoclient.sh /script/responsetoclient.sh
|
||||
@@ -22,11 +37,3 @@ COPY script/trace.sh /script/trace.sh
|
||||
RUN chmod +x /script/startotsclient.sh /script/requesthandler.sh
|
||||
|
||||
ENTRYPOINT ["su-exec"]
|
||||
|
||||
# docker build -t otsclient-js .
|
||||
# docker run -it --rm --name otsclient -v /home/debian/otsfiles:/otsfiles otsclient-js `id -u cyphernode`:`id -g cyphernode` ash
|
||||
|
||||
# ots-cli.js stamp -d 1ddfb769eb0b8876bc570e25580e6a53afcf973362ee1ee4b54a807da2e5eed7
|
||||
# ots-cli.js verify -d 1ddfb769eb0b8876bc570e25580e6a53afcf973362ee1ee4b54a807da2e5eed7 1ddfb769eb0b8876bc570e25580e6a53afcf973362ee1ee4b54a807da2e5eed7.ots
|
||||
# ots-cli.js info 1ddfb769eb0b8876bc570e25580e6a53afcf973362ee1ee4b54a807da2e5eed7.ots
|
||||
# ots-cli.js upgrade 1ddfb769eb0b8876bc570e25580e6a53afcf973362ee1ee4b54a807da2e5eed7.ots
|
||||
|
||||
Reference in New Issue
Block a user