mirror of
https://github.com/containers/podman
synced 2024-10-21 01:34:37 +00:00
d20f3a5146
Need to get some small changes into libpod to pull back into buildah to complete buildah transition. Signed-off-by: Daniel J Walsh <dwalsh@redhat.com> Closes: #1270 Approved by: mheon
18 lines
738 B
Bash
18 lines
738 B
Bash
#!/bin/bash
|
|
set -xeuo pipefail
|
|
|
|
DIST=${DIST:=Fedora}
|
|
CONTAINER_RUNTIME=${CONTAINER_RUNTIME:=docker}
|
|
IMAGE=fedorapodmanbuild
|
|
PYTHON=python3
|
|
if [[ ${DIST} != "Fedora" ]]; then
|
|
IMAGE=centospodmanbuild
|
|
PYTHON=python
|
|
fi
|
|
|
|
# Build the test image
|
|
${CONTAINER_RUNTIME} build -t ${IMAGE} -f Dockerfile.${DIST} . 2>build.log
|
|
|
|
# Run the tests
|
|
${CONTAINER_RUNTIME} run --rm --privileged --net=host -v $PWD:/go/src/github.com/containers/libpod --workdir /go/src/github.com/containers/libpod -e CGROUP_MANAGER=cgroupfs -e PYTHON=$PYTHON -e STORAGE_OPTIONS="--storage-driver=vfs" -e CRIO_ROOT="/go/src/github.com/containers/libpod" -e PODMAN_BINARY="/usr/bin/podman" -e CONMON_BINARY="/usr/libexec/podman/conmon" -e DIST=$DIST $IMAGE sh .papr.sh
|