mirror of
https://github.com/tailscale/tailscale.git
synced 2024-11-25 19:15:34 +00:00
2c403cbb31
Signed-off-by: Maisem Ali <maisem@tailscale.com>
29 lines
976 B
Bash
Executable File
29 lines
976 B
Bash
Executable File
#!/usr/bin/env sh
|
|
|
|
#
|
|
# Runs `go build` with flags configured for docker distribution. All
|
|
# it does differently from `go build` is burn git commit and version
|
|
# information into the binaries inside docker, so that we can track down user
|
|
# issues.
|
|
#
|
|
############################################################################
|
|
#
|
|
# WARNING: Tailscale is not yet officially supported in container
|
|
# environments, such as Docker and Kubernetes. Though it should work, we
|
|
# don't regularly test it, and we know there are some feature limitations.
|
|
#
|
|
# See current bugs tagged "containers":
|
|
# https://github.com/tailscale/tailscale/labels/containers
|
|
#
|
|
############################################################################
|
|
|
|
set -eu
|
|
|
|
eval $(./build_dist.sh shellvars)
|
|
|
|
docker build \
|
|
--build-arg VERSION_LONG=$VERSION_LONG \
|
|
--build-arg VERSION_SHORT=$VERSION_SHORT \
|
|
--build-arg VERSION_GIT_HASH=$VERSION_GIT_HASH \
|
|
-t tailscale:$VERSION_SHORT -t tailscale:latest .
|