Files
zt/quickstart/docker/image/fetch-ziti-bins.sh

18 lines
387 B
Bash

#!/bin/bash
set -o errexit
set -o nounset
set -o pipefail
# set -o xtrace
# this script is executed during the docker build, after the build context has been copied to /docker.build.context
ZITI_BIN_DIR="${1}"
if [ -d /docker.build.context/ziti-bin ]; then
mv /docker.build.context/ziti-bin/ "${ZITI_BIN_DIR}"
else
source /docker.build.context/ziti-cli-functions.sh
getZiti
fi