add licence
This commit is contained in:
parent
23e26564c5
commit
430ce43470
|
@ -1,8 +1,10 @@
|
||||||
ARG DEBIAN_RELEASE=bullseye
|
ARG DEBIAN_RELEASE=bullseye
|
||||||
|
ARG LICENSE=''
|
||||||
FROM docker.io/debian:$DEBIAN_RELEASE-slim
|
FROM docker.io/debian:$DEBIAN_RELEASE-slim
|
||||||
ARG DEBIAN_RELEASE
|
ARG DEBIAN_RELEASE
|
||||||
COPY entrypoint.sh /
|
COPY entrypoint.sh /
|
||||||
ENV DEBIAN_FRONTEND noninteractive
|
ENV DEBIAN_FRONTEND noninteractive
|
||||||
|
ENV LICENSE=${LICENSE}
|
||||||
RUN true && \
|
RUN true && \
|
||||||
apt update && \
|
apt update && \
|
||||||
apt install -y gnupg ca-certificates curl socat && \
|
apt install -y gnupg ca-certificates curl socat && \
|
||||||
|
|
|
@ -7,6 +7,8 @@ services:
|
||||||
ports:
|
ports:
|
||||||
- 40000:40000
|
- 40000:40000
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
environment:
|
||||||
|
- LICENSE=
|
||||||
logging:
|
logging:
|
||||||
driver: json-file
|
driver: json-file
|
||||||
options:
|
options:
|
||||||
|
|
|
@ -7,9 +7,15 @@ while ! warp-cli --accept-tos register; do
|
||||||
done
|
done
|
||||||
warp-cli --accept-tos set-mode proxy
|
warp-cli --accept-tos set-mode proxy
|
||||||
warp-cli --accept-tos set-proxy-port 40001
|
warp-cli --accept-tos set-proxy-port 40001
|
||||||
|
|
||||||
|
if [ "$LICENSE" == "" ]; then
|
||||||
|
warp-cli --accept-tos set-license $LICENSE
|
||||||
|
fi
|
||||||
|
|
||||||
warp-cli --accept-tos connect
|
warp-cli --accept-tos connect
|
||||||
socat TCP-LISTEN:40000,fork TCP:localhost:40001 # socat is used to redirect traffic from 40000 to 40001
|
socat TCP-LISTEN:40000,fork TCP:localhost:40001 # socat is used to redirect traffic from 40000 to 40001
|
||||||
) &
|
) &
|
||||||
|
|
||||||
exec warp-svc
|
exec warp-svc
|
||||||
warp-cli enable-always-on
|
warp-cli enable-always-on
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue