pegleg/tools/pegleg.sh
Felipe Monteiro 22584dfdb8 trivial: Update default image reference in pegleg.sh
This patch set updates the default image reference used by
pegleg.sh from a downstream reference to the appropriate
upstream reference.

Change-Id: Id0198c6b69ee145901dae208ab9584e102f39827
2018-08-16 03:17:49 +00:00

22 lines
485 B
Bash
Executable File

#!/usr/bin/env bash
set -e
: ${WORKSPACE:=$(pwd)}
: ${IMAGE:=quay.io/attcomdev/pegleg:latest}
echo
echo "== NOTE: Workspace $WORKSPACE is the execution directory in the container =="
echo
# Working directory inside container to execute commands from and mount from
# host OS
container_workspace_path='/workspace'
docker run --rm -t \
--net=none \
--workdir="$container_workspace_path" \
-v "${WORKSPACE}:$container_workspace_path" \
"${IMAGE}" \
pegleg "${@}"