Pegleg wrapper

Script used to execute pegleg container as CLI utility.

Change-Id: Ib1de784abf0b65506ca7a057028c9d76b2a724fa
This commit is contained in:
Kaspars Skels 2018-08-15 15:02:32 -05:00
parent 5c20bfa377
commit 13b77a200f
1 changed files with 18 additions and 0 deletions

18
tools/pegleg.sh Executable file
View File

@ -0,0 +1,18 @@
#!/usr/bin/env bash
set -e
WORKSPACE=${WORKSPACE:-$(pwd)}
PEGLEG_IMAGE=${PEGLEG_IMAGE:-quay.io/airshipit/pegleg:54e30687d444e83cbc628a2dfb4bb3cb0815328f}
echo
echo "== NOTE: Workspace $WORKSPACE is available as /workspace in container context =="
echo
docker run --rm -it \
--net=none \
--workdir="/workspace" \
-v "${WORKSPACE}:/workspace" \
"${PEGLEG_IMAGE}" \
pegleg "${@}"