diff --git a/README.md b/README.md new file mode 100644 index 0000000..ec376dc --- /dev/null +++ b/README.md @@ -0,0 +1,2 @@ +## images +https://hub.docker.com/u/devcm diff --git a/kube/LuaBouncerPlugin b/images/crowdsec-bouncer/Dockerfile similarity index 100% rename from kube/LuaBouncerPlugin rename to images/crowdsec-bouncer/Dockerfile diff --git a/node/NodeBase b/images/node-base/Dockerfile similarity index 100% rename from node/NodeBase rename to images/node-base/Dockerfile diff --git a/node/NodePuppeteer b/images/node-puppeteer/Dockerfile similarity index 100% rename from node/NodePuppeteer rename to images/node-puppeteer/Dockerfile diff --git a/node/sources.list b/images/node-puppeteer/sources.list similarity index 100% rename from node/sources.list rename to images/node-puppeteer/sources.list diff --git a/images/tailscale-derp/Dockerfile b/images/tailscale-derp/Dockerfile new file mode 100644 index 0000000..3a834cb --- /dev/null +++ b/images/tailscale-derp/Dockerfile @@ -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" ] \ No newline at end of file diff --git a/images/tailscale-derp/init.sh b/images/tailscale-derp/init.sh new file mode 100644 index 0000000..eba8844 --- /dev/null +++ b/images/tailscale-derp/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 \ No newline at end of file diff --git a/kube/TailscaleDerp b/kube/TailscaleDerp deleted file mode 100644 index b65f1b6..0000000 --- a/kube/TailscaleDerp +++ /dev/null @@ -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" ] \ No newline at end of file