mirror of
https://github.com/tailscale/tailscale.git
synced 2024-12-11 02:34:43 +00:00
9288e0d61c
version.sh was removed in commit 5088af68
. Use `build_dist.sh shellvars`
to provide version information instead.
Signed-off-by: Irshad Pananilath <pmirshad+code@gmail.com>
35 lines
1.1 KiB
Bash
Executable File
35 lines
1.1 KiB
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 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 -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:tailscale .
|