mirror of
https://github.com/containers/podman.git
synced 2025-08-06 19:44:14 +08:00

libpod requires new buildah and container image versions to resolve bug #1640298 Signed-off-by: baude <bbaude@redhat.com>
18 lines
855 B
Bash
18 lines
855 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 --cap-add all --security-opt seccomp=unconfined --security-opt label=disable --net=host -v $PWD:/go/src/github.com/containers/libpod:Z --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 -e CONTAINER_RUNTIME=$CONTAINER_RUNTIME $IMAGE sh ./.papr.sh -b -i -t
|