
This patch: 1. Resolves an issue where the base image was overrided with python:3.6 2. Adds framework for creating new images of other distributions and gating against them. Change-Id: Iaa8ec86f947189bf24d40e5594e015554f7abddb
24 lines
534 B
Bash
Executable File
24 lines
534 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
: ${WORKSPACE:=$(pwd)}
|
|
: ${IMAGE:=quay.io/airshipit/spyglass:latest-ubuntu_xenial}
|
|
|
|
: ${TERM_OPTS:=-t}
|
|
|
|
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='/var/spyglass'
|
|
|
|
docker run --rm $TERM_OPTS \
|
|
--net=host \
|
|
--workdir="$container_workspace_path" \
|
|
-v "${WORKSPACE}:$container_workspace_path" \
|
|
"${IMAGE}" \
|
|
spyglass "${@}"
|