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
|
|
|
|
|
2018-03-04 07:03:06 +00:00
|
|
|
DOCKER_REPO=${DOCKER_REPO:-"alxchk"}
|
2018-01-05 12:19:10 +00:00
|
|
|
|
|
|
|
if [ ! -z "$REPO" ]; then
|
|
|
|
if [ "$REPO" == "local" ]; then
|
2018-03-04 07:03:06 +00:00
|
|
|
REPO="pupy"
|
2018-01-05 12:19:10 +00:00
|
|
|
else
|
2018-03-04 07:03:06 +00:00
|
|
|
REPO="$REPO/pupy"
|
2018-01-05 12:19:10 +00:00
|
|
|
fi
|
2018-03-04 07:03:06 +00:00
|
|
|
else
|
|
|
|
REPO="${DOCKER_REPO}/pupy"
|
2018-01-05 12:19:10 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
echo "[+] Build clients"
|
|
|
|
${PUPY}/client/build-docker.sh
|
|
|
|
echo
|
|
|
|
|
|
|
|
echo "[+] Build pupysh (${REPO}:${TAG})"
|
|
|
|
cd ${PUPY}/pupy && docker build -t ${REPO}:${TAG} .
|
|
|
|
echo
|