Initial commit

This commit is contained in:
Ben Radey
2023-05-21 00:53:19 -04:00
commit 655745f506
2 changed files with 75 additions and 0 deletions
+32
View File
@@ -0,0 +1,32 @@
FROM ghcr.io/cgwalters/fedora-silverblue:38
# Install ZFS repository
RUN rpm-ostree install https://zfsonlinux.org/fedora/zfs-release-2-3$(rpm --eval "%{dist}").noarch.rpm && \
# cleanup and verification stage
rm -vrf /var /*.rpm && \
ostree container commit
# Install ZFS build deps
RUN rpm-ostree install \
kernel-devel kernel-devel-matched kernel-headers kernel-srpm-macros && \
# cleanup and verification stage
rm -vrf /var && \
ostree container commit
# TODO: Remove the following line once this bug is fixed: https://github.com/coreos/rpm-ostree/issues/4201
RUN test -f /usr/bin/ld || ln -s /usr/bin/ld.bfd /usr/bin/ld
# Install zfs
RUN rpm-ostree install zfs && \
dkms autoinstall -k $(rpm -qa kernel --queryformat '%{VERSION}-%{RELEASE}.%{ARCH}') && \
# cleanup and verification stage
rm -vrf /var && \
ostree container commit
# TODO: Remove the following line once this bug is fixed: https://github.com/coreos/rpm-ostree/issues/4201
RUN test -h /usr/bin/ld && rm -v /usr/bin/ld
RUN rpm-ostree install \
distrobox iotop screen vim fuse-encfs borgbackup htop rclone ipmitool fuse-sshfs smartmontools nut \
&& rm -vrf /var && ostree container commit