update Dockerfile to use latest alpine version; enhance start-tailscale.sh with comments for Tailscale updates
Some checks failed
Build and Push mikrotik-tailscale Container / build-and-push-arch (amd64) (push) Failing after -6s
Build and Push mikrotik-tailscale Container / build-and-push-arch (arm64) (push) Failing after 12s
Build and Push mikrotik-tailscale Container / merge-images-via-manifest (push) Has been skipped
Some checks failed
Build and Push mikrotik-tailscale Container / build-and-push-arch (amd64) (push) Failing after -6s
Build and Push mikrotik-tailscale Container / build-and-push-arch (arm64) (push) Failing after 12s
Build and Push mikrotik-tailscale Container / merge-images-via-manifest (push) Has been skipped
This commit is contained in:
parent
b68f28ef70
commit
c45c56de1c
2 changed files with 8 additions and 1 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
FROM alpine:3.20
|
FROM alpine:latest
|
||||||
|
|
||||||
# Install all dependencies at build time, not runtime
|
# Install all dependencies at build time, not runtime
|
||||||
RUN apk add --no-cache \
|
RUN apk add --no-cache \
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,12 @@ echo "Setting Tailscale ARGS: $set"
|
||||||
echo 1 > /proc/sys/net/ipv4/ip_forward
|
echo 1 > /proc/sys/net/ipv4/ip_forward
|
||||||
echo 1 > /proc/sys/net/ipv6/conf/all/forwarding
|
echo 1 > /proc/sys/net/ipv6/conf/all/forwarding
|
||||||
|
|
||||||
|
|
||||||
|
# Enable Tailscale updates
|
||||||
|
# tailscale update --yes
|
||||||
|
# apk update
|
||||||
|
# apk upgrade --no-cache
|
||||||
|
|
||||||
# Enable NAT masquerading if requested (nat=true|yes|1)
|
# Enable NAT masquerading if requested (nat=true|yes|1)
|
||||||
case "${nat:-}" in
|
case "${nat:-}" in
|
||||||
true|yes|1)
|
true|yes|1)
|
||||||
|
|
@ -36,6 +42,7 @@ if [ -z "${up}" ] && [ -z "${set}" ] && [ -z "${nat}" ]; then
|
||||||
echo "No 'up' or 'set' options provided"
|
echo "No 'up' or 'set' options provided"
|
||||||
echo "Use /container/shell CONTAINER to access the shell of this container"
|
echo "Use /container/shell CONTAINER to access the shell of this container"
|
||||||
echo "I hope you use a mountpoint for /var/lib/tailscale for persistence"
|
echo "I hope you use a mountpoint for /var/lib/tailscale for persistence"
|
||||||
|
echo "or update the container by uncommenting the update lines above"
|
||||||
echo "Uncomment the line below to run iptables -t nat -A POSTROUTING -o tailscale0 -j MASQUERADE at startup if you need NAT"
|
echo "Uncomment the line below to run iptables -t nat -A POSTROUTING -o tailscale0 -j MASQUERADE at startup if you need NAT"
|
||||||
# iptables -t nat -A POSTROUTING -o tailscale0 -j MASQUERADE
|
# iptables -t nat -A POSTROUTING -o tailscale0 -j MASQUERADE
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue