1
1
Fork 0
mirror of https://github.com/containers/udica synced 2024-05-24 01:46:11 +02:00
udica/contrib/cirrus/build.sh
Chris Evich bd32eaf43e
Cirrus: Update CI VM images
Note F35 is disabled due to golang 1.18 requirement in podman. The
PRIOR_FEDORA... runs may be put back in place when F37 is released.

Signed-off-by: Chris Evich <cevich@redhat.com>
2022-08-29 14:23:36 -04:00

32 lines
954 B
Bash
Executable File

#!/bin/bash
set -eo pipefail
source $(dirname $0)/lib.sh
req_env_vars GOPATH SCRIPT_BASE CIRRUS_WORKING_DIR PODMAN_FROM OS_RELEASE_ID
[[ "$PODMAN_FROM" == 'main' ]] || \
die 1 "Unsupported \$PODMAN_FROM value: $PODMAN_FROM"
remove_packaged_podman_files
echo "Building & installing libpod from '$PODMAN_FROM' source"
GOSRC=$GOPATH/src/github.com/containers/libpod
mkdir -p "$GOSRC"
showrun git clone -b "$PODMAN_FROM" https://github.com/containers/libpod.git "$GOSRC"
cd "$GOSRC"
showrun make
showrun make install PREFIX=/usr ETCDIR=/etc
echo "Configuring podman for execution w/in a container"
sed -e 's|^#mount_program|mount_program|g' \
-e 's|^mountopt[[:space:]]*=.*$|mountopt = "nodev,fsync=0"|g' \
/usr/share/containers/storage.conf \
> /etc/containers/storage.conf
setsebool container_manage_cgroup true # systemd in container
echo "Installing Udica from source"
cd "$CIRRUS_WORKING_DIR"
showrun python3 ./setup.py install