c052d40277
This PS delivers focal version of Pegleg image and has the following updates: - removed release-notes-jobs-python3 gate job because of incompartibility with Sphinx from current requirements - added focal gate node and switched gates to use it - added bindep.txt file into project root - added bindep role into gate jobs - added ubuntu_focal dockerfile for building focal pegleg image - switched tox profiles to py38 - uplifted references to shipyard_client, promenade and deckhand projects - resolved required dependencies conflicts by weakening constraints in Pipfile - updated tox profile update-requirements for generate requirements.txt and test-requirements.txt - generated new Pipfile.lock, requirements.txt and test-requirements.txt from Pipfile - switched tox profiles to use requirements.txt and test-requirements.txt instead of pipenv because of upstream zuul nodes Pypi mirrorring issue - updated reference to seaworthy site certificates in treasuremap repo - fixed unit tests issues caused by pytest/mock updates and new openssl version - fixed focal docker image publishing issue - added multiprocessing into coverage tests running process - made unit and coveraget tests more verbosive Change-Id: I5c4c519dc725cfb8c7b4e14756347c9336028aff
27 lines
668 B
Bash
Executable File
27 lines
668 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
: ${WORKSPACE:=$(pwd)}
|
|
: ${IMAGE:=quay.io/airshipit/pegleg:latest-ubuntu_focal}
|
|
|
|
: ${TERM_OPTS:=-it}
|
|
|
|
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 $TERM_OPTS \
|
|
--net=host \
|
|
--workdir="$container_workspace_path" \
|
|
-v "${HOME}/.ssh:${container_workspace_path}/.ssh" \
|
|
-v "${WORKSPACE}:$container_workspace_path" \
|
|
-e "PEGLEG_PASSPHRASE=$PEGLEG_PASSPHRASE" \
|
|
-e "PEGLEG_SALT=$PEGLEG_SALT" \
|
|
"${IMAGE}" \
|
|
pegleg "${@}"
|