summaryrefslogtreecommitdiff
path: root/base
diff options
context:
space:
mode:
Diffstat (limited to 'base')
-rw-r--r--base/Containerfile5
1 files changed, 5 insertions, 0 deletions
diff --git a/base/Containerfile b/base/Containerfile
index ae51051..a4ff2f4 100644
--- a/base/Containerfile
+++ b/base/Containerfile
@@ -58,8 +58,13 @@ RUN cd /etc/yum.repos.d/ && \
RUN readarray -td '' pkgs < <(/tmp/yq '.install[]' /tmp/packages.yaml) && \
rpm-ostree install "${pkgs[@]}"
+# enable automatic updates
RUN sed -i 's/#AutomaticUpdatePolicy.*/AutomaticUpdatePolicy=stage/' /etc/rpm-ostreed.conf
+# bring in config layer
+COPY --from=ghcr.io/getchoo/config:${FEDORA_VERSION} /rpms /tmp/config
+RUN rpm-ostree install /tmp/config/container-policy/getchoo-container-policy*.rpm
+
RUN rpm-ostree cleanup -m && \
rm -rf /tmp/* /var/* && \