镜像自地址
https://github.com/devcm-repo/container-images.git
已同步 2026-07-28 18:11:56 +00:00
feat(tailscale): tailscale drep refactoring
这个提交包含在:
@@ -0,0 +1,14 @@
|
|||||||
|
# Tailscale Drep基础镜像
|
||||||
|
FROM golang:alpine
|
||||||
|
ARG VERSION=main
|
||||||
|
|
||||||
|
RUN apk add git
|
||||||
|
|
||||||
|
RUN apk add tailscale
|
||||||
|
|
||||||
|
RUN go install tailscale.com/cmd/derper@${VERSION}
|
||||||
|
|
||||||
|
COPY init.sh /init.sh
|
||||||
|
RUN chmod +x /init.sh
|
||||||
|
|
||||||
|
ENTRYPOINT [ "/init.sh" ]
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
|
#Start tailscaled and connect to tailnet
|
||||||
|
/usr/sbin/tailscaled --state=/var/lib/tailscale/tailscaled.state &> /var/lib/tailscale/tailscaled_initial.log &
|
||||||
|
/usr/bin/tailscale up --accept-routes=true --accept-dns=true --auth-key $TAILSCALE_AUTH_KEY --hostname $TAILSCALE_HOSTNAME &> /var/lib/tailscale/tailscale_onboard.log &
|
||||||
|
|
||||||
|
#Start Tailscale derp server
|
||||||
|
/root/go/bin/derper --hostname=$TAILSCALE_DERP_HOSTNAME --a=$TAILSCALE_DERP_ADDR --verify-clients=$TAILSCALE_DERP_VERIFY_CLIENTS
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
# Tailscale Drep基础镜像
|
|
||||||
FROM golang:alpine
|
|
||||||
ARG VERSION=main
|
|
||||||
|
|
||||||
RUN apk add git && go install tailscale.com/cmd/derper@${VERSION}
|
|
||||||
|
|
||||||
ENTRYPOINT [ "/go/bin/derper" ]
|
|
||||||
在新议题中引用
屏蔽一个用户