pegleg/tools/pegleg.sh
Bryan Strassner cc64765075 Pegleg use artifactory image
The referenced quay.io image was no longer valid. Changed to
use artifactory iamge in atlantafoundry.

Change-Id: I29b384271e5f65e7609ffae52a553bf82f7a0d32
2018-04-11 09:38:46 -04:00

26 lines
508 B
Bash
Executable File

#!/usr/bin/env bash
set -e
realpath() {
[[ $1 = /* ]] && echo "$1" || echo "$PWD/${1#./}"
}
SCRIPT_DIR=$(realpath "$(dirname "${0}")")
SOURCE_DIR=${SCRIPT_DIR}/pegleg
if [ -z "${WORKSPACE}" ]; then
WORKSPACE="/"
fi
IMAGE=${IMAGE:-artifacts-aic.atlantafoundry.com/att-comdev/pegleg:latest}
echo
echo "== NOTE: Workspace $WORKSPACE is available as /workspace in container context =="
echo
docker run --rm -t \
--net=none \
-v "${WORKSPACE}:/workspace" \
"${IMAGE}" \
pegleg "${@}"