mirror of
https://github.com/Fluent-networks/tailscale-mikrotik.git
synced 2025-07-15 11:54:31 +02:00
RouterOS 7.6, Tailscale 1.32.0. Add container registry option. Container password as env option. Enable upgrade functionality using Tailscale API.
50 lines
1.5 KiB
Bash
Executable file
50 lines
1.5 KiB
Bash
Executable file
#!/usr/bin/env sh
|
|
|
|
#
|
|
# Updates tailscale respository and runs `docker build` with flags configured for
|
|
# docker distribution.
|
|
#
|
|
############################################################################
|
|
#
|
|
# WARNING: Tailscale is not yet officially supported in Docker,
|
|
# Kubernetes, etc.
|
|
#
|
|
# It might work, but we don't regularly test it, and it's not as polished as
|
|
# our currently supported platforms. This is provided for people who know
|
|
# how Tailscale works and what they're doing.
|
|
#
|
|
# Our tracking bug for officially support container use cases is:
|
|
# https://github.com/tailscale/tailscale/issues/504
|
|
#
|
|
# Also, see the various bugs tagged "containers":
|
|
# https://github.com/tailscale/tailscale/labels/containers
|
|
#
|
|
############################################################################
|
|
#
|
|
# Set PLATFORM as required for your router model. See:
|
|
# https://mikrotik.com/products/matrix
|
|
#
|
|
PLATFORM="linux/arm/v7"
|
|
TAILSCALE_VERSION=1.32.0
|
|
VERSION=0.1.6
|
|
|
|
set -eu
|
|
|
|
rm -f tailscale.tar
|
|
|
|
if [ ! -d ./tailscale/.git ]
|
|
then
|
|
git -c advice.detachedHead=false clone https://github.com/tailscale/tailscale.git --branch v$TAILSCALE_VERSION
|
|
fi
|
|
|
|
cd tailscale && eval $(./build_dist.sh shellvars) && cd ..
|
|
|
|
docker buildx build \
|
|
--no-cache \
|
|
--build-arg VERSION_LONG=$VERSION_LONG \
|
|
--build-arg VERSION_SHORT=$VERSION_SHORT \
|
|
--build-arg VERSION_GIT_HASH=$VERSION_GIT_HASH \
|
|
--platform $PLATFORM \
|
|
--load -t ghcr.io/fluent-networks/tailscale-mikrotik:$VERSION .
|
|
|
|
docker save -o tailscale.tar ghcr.io/fluent-networks/tailscale-mikrotik:$VERSION
|