2018-01-05 12:19:10 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
SELF=`readlink -f "$0"`
|
|
|
|
PUPY=`dirname "$SELF"`
|
|
|
|
PUPY=`readlink -f "$PUPY"`
|
|
|
|
TAG=${TAG:-"latest"}
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
REPO=${DOCKER_REPO:-"alxchk"}
|
|
|
|
|
|
|
|
if [ ! -z "$REPO" ]; then
|
|
|
|
if [ "$REPO" == "local" ]; then
|
2018-01-11 10:54:42 +00:00
|
|
|
REPO="pupy"
|
2018-01-05 12:19:10 +00:00
|
|
|
else
|
|
|
|
REPO="$REPO/pupy"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
echo "[+] Build clients"
|
|
|
|
${PUPY}/client/build-docker.sh
|
|
|
|
echo
|
|
|
|
|
|
|
|
echo "[+] Build pupysh (${REPO}:${TAG})"
|
|
|
|
cd ${PUPY}/pupy && docker build -t ${REPO}:${TAG} .
|
|
|
|
echo
|