#!/bin/sh # # need to tweak some config options so "podman build" can run inside a container # # update & install packages dnf update -y dnf install -y podman podman-docker buildah dnf clean all -y # storage: can't use overlay (can't be stacked). sed -i.orig -e '/^driver/s/overlay/vfs/' /etc/containers/storage.conf diff -u /etc/containers/storage.conf.orig /etc/containers/storage.conf # cgroups: no systemd, so use cgroupfs directly cp /usr/share/containers/libpod.conf /etc/containers sed -i.orig -e '/^cgroup_manager/s/systemd/cgroupfs/' /etc/containers/libpod.conf diff -u /etc/containers/libpod.conf.orig /etc/containers/libpod.conf # silence emulation notification touch /etc/containers/nodocker exit 0