mirror of https://github.com/linkerd/linkerd2.git
30 lines
636 B
Bash
Executable File
30 lines
636 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -eu
|
|
|
|
if [ $# -ne 0 ]; then
|
|
echo "no arguments allowed for $(basename $0), given: $@" >&2
|
|
exit 64
|
|
fi
|
|
|
|
bindir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|
rootdir="$( cd $bindir/.. && pwd )"
|
|
|
|
. $bindir/_docker.sh
|
|
. $bindir/_tag.sh
|
|
|
|
dockerfile=$rootdir/Dockerfile-proxy
|
|
|
|
validate_go_deps_tag $dockerfile
|
|
|
|
(
|
|
$bindir/docker-build-base
|
|
$bindir/docker-build-go-deps
|
|
) >/dev/null
|
|
|
|
# Default to a pinned commit SHA of the proxy.
|
|
PROXY_VERSION="${PROXY_VERSION:-5f89351}"
|
|
|
|
tag="$(head_root_tag)"
|
|
docker_build proxy $tag $dockerfile --build-arg LINKERD_VERSION=$tag --build-arg PROXY_VERSION=$PROXY_VERSION
|