feat: ease customization by reading flatpaks and rpms to install from a recipe.yml. (#79)
Co-authored-by: ER <eino.rauhala@proton.me> Co-authored-by: Marco Ceppi <marco@ceppi.net> Co-authored-by: Jorge O. Castro <jorge.castro@gmail.com>
This commit is contained in:
@@ -5,20 +5,26 @@ ARG FEDORA_MAJOR_VERSION=37
|
||||
FROM quay.io/fedora-ostree-desktops/silverblue:${FEDORA_MAJOR_VERSION}
|
||||
# See https://pagure.io/releng/issue/11047 for final location
|
||||
|
||||
# Add Vanilla First Setup
|
||||
RUN wget https://copr.fedorainfracloud.org/coprs/ublue-os/vanilla-first-setup/repo/fedora-$(rpm -E %fedora)/ublue-os-vanilla-first-setup-fedora-$(rpm -E %fedora).repo -O /etc/yum.repos.d/_copr_ublue-os-vanilla-first-setup.repo
|
||||
|
||||
COPY etc /etc
|
||||
COPY usr /usr
|
||||
|
||||
COPY ublue-firstboot /usr/bin
|
||||
COPY recipe.yml /etc/ublue-recipe.yml
|
||||
|
||||
COPY --from=docker.io/mikefarah/yq /usr/bin/yq /usr/bin/yq
|
||||
|
||||
RUN rpm-ostree override remove firefox firefox-langpacks && \
|
||||
rpm-ostree install distrobox gnome-tweaks just vte291-gtk4-devel vanilla-first-setup && \
|
||||
echo "-- Installing RPMs defined in recipe.yml --" && \
|
||||
rpm_packages=$(yq '.rpms[]' < /etc/ublue-recipe.yml) && \
|
||||
for pkg in $rpm_packages; do \
|
||||
echo "Installing: ${pkg}" && \
|
||||
rpm-ostree install $pkg; \
|
||||
done && \
|
||||
echo "---" && \
|
||||
|
||||
sed -i 's/#AutomaticUpdatePolicy.*/AutomaticUpdatePolicy=stage/' /etc/rpm-ostreed.conf && \
|
||||
systemctl enable rpm-ostreed-automatic.timer && \
|
||||
systemctl enable flatpak-system-update.timer && \
|
||||
sed -i 's@enabled=1@enabled=0@g' /etc/yum.repos.d/_copr_ublue-os-vanilla-first-setup.repo && \
|
||||
rm -rf \
|
||||
/tmp/* \
|
||||
/var/* && \
|
||||
|
||||
Reference in New Issue
Block a user