add licence

This commit is contained in:
Seiry Yu 2023-04-27 19:05:20 +08:00 committed by GitHub
parent 23e26564c5
commit 430ce43470
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 0 deletions

View File

@ -1,8 +1,10 @@
ARG DEBIAN_RELEASE=bullseye
ARG LICENSE=''
FROM docker.io/debian:$DEBIAN_RELEASE-slim
ARG DEBIAN_RELEASE
COPY entrypoint.sh /
ENV DEBIAN_FRONTEND noninteractive
ENV LICENSE=${LICENSE}
RUN true && \
apt update && \
apt install -y gnupg ca-certificates curl socat && \

View File

@ -7,6 +7,8 @@ services:
ports:
- 40000:40000
restart: unless-stopped
environment:
- LICENSE=
logging:
driver: json-file
options:

View File

@ -7,9 +7,15 @@ while ! warp-cli --accept-tos register; do
done
warp-cli --accept-tos set-mode proxy
warp-cli --accept-tos set-proxy-port 40001
if [ "$LICENSE" == "" ]; then
warp-cli --accept-tos set-license $LICENSE
fi
warp-cli --accept-tos connect
socat TCP-LISTEN:40000,fork TCP:localhost:40001 # socat is used to redirect traffic from 40000 to 40001
) &
exec warp-svc
warp-cli enable-always-on