chore: use a bash script and simplify Containerfile

This commit is contained in:
Benjamin Sherman 2024-04-15 00:20:34 -05:00
parent e19fcff7bf
commit 2c83ac7f21
No known key found for this signature in database
GPG key ID: 24E3D151565CA98B
2 changed files with 35 additions and 17 deletions

27
build.sh Executable file
View file

@ -0,0 +1,27 @@
#!/bin/sh
set -ouex pipefail
RELEASE="$(rpm -E %fedora)"
### Install packages
# Packages can be installed from any enabled yum repo on the image.
# RPMfusion repos are available by default in ublue main images
# List of rpmfusion packages can be found here:
# https://mirrors.rpmfusion.org/mirrorlist?path=free/fedora/updates/39/x86_64/repoview/index.html&protocol=https&redirect=1
# this installs a package from fedora repos
rpm-ostree install screen
# this would install a package from rpmfusion
#RUN rpm-ostree install vlc
#### Change to System Configuration Files
# this example modifies default timeouts to prevent slow reboots from services that won't stop
sed -i 's/#DefaultTimeoutStopSec.*/DefaultTimeoutStopSec=15s/' /etc/systemd/user.conf
sed -i 's/#DefaultTimeoutStopSec.*/DefaultTimeoutStopSec=15s/' /etc/systemd/system.conf