diff options
Diffstat (limited to '.papr_prepare.sh')
-rw-r--r-- | .papr_prepare.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/.papr_prepare.sh b/.papr_prepare.sh new file mode 100644 index 000000000..730cd6540 --- /dev/null +++ b/.papr_prepare.sh @@ -0,0 +1,16 @@ +#!/bin/bash +set -xeuo pipefail + +DIST=$(cat /etc/redhat-release | awk '{print $1}') +IMAGE=fedorapodmanbuild +PYTHON=python3 +if [[ ${DIST} != "Fedora" ]]; then + IMAGE=centospodmanbuild + PYTHON=python +fi + +# Build the test image +docker build -t ${IMAGE} -f Dockerfile.${DIST} . + +# Run the tests +docker run --rm --privileged -v $PWD:/go/src/github.com/projectatomic/libpod --workdir /go/src/github.com/projectatomic/libpod -e PYTHON=$PYTHON -e STORAGE_OPTIONS="--storage-driver=vfs" -e CRIO_ROOT="/go/src/github.com/projectatomic/libpod" -e PODMAN_BINARY="/usr/bin/podman" -e CONMON_BINARY="/usr/libexec/crio/conmon" -e DIST=$DIST $IMAGE sh .papr.sh |