aboutsummaryrefslogtreecommitdiff
path: root/templates/bootcblade.containerfile.j2
diff options
context:
space:
mode:
authorspmfox <spmfox@foxwd.com>2024-05-27 22:02:53 -0400
committerspmfox <spmfox@foxwd.com>2024-05-27 22:02:53 -0400
commita2f4ef8a1d83ac42195ad9c10d95572b44609dcd (patch)
treebb0f28e9d9b20376367e73bee57f8a026657320b /templates/bootcblade.containerfile.j2
parentb1bf9890d12d965011c2dff639b8eb0b477d7ad2 (diff)
Initial commit of project
Diffstat (limited to 'templates/bootcblade.containerfile.j2')
-rw-r--r--templates/bootcblade.containerfile.j224
1 files changed, 24 insertions, 0 deletions
diff --git a/templates/bootcblade.containerfile.j2 b/templates/bootcblade.containerfile.j2
new file mode 100644
index 0000000..7e5ade6
--- /dev/null
+++ b/templates/bootcblade.containerfile.j2
@@ -0,0 +1,24 @@
+FROM quay.io/centos-bootc/centos-bootc:{{ centos_bootc_tag if centos_bootc_tag is defined else 'stream9' }}
+RUN mkdir /var/roothome
+RUN echo "%wheel ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/wheel-passwordless-sudo
+RUN dnf -y install epel-release && \
+ dnf -y install https://zfsonlinux.org/epel/zfs-release-2-3$(rpm --eval "%{dist}").noarch.rpm && \
+ dnf -y install kernel-devel-$(ls /usr/lib/modules) && \
+ dnf -y install zfs && \
+ dkms build zfs/$(rpm -q --qf '%{VERSION}' zfs) -k $(ls /usr/lib/modules) && \
+ dkms install zfs/$(rpm -q --qf '%{VERSION}' zfs) -k $(ls /usr/lib/modules)
+RUN dnf -y install vim git podman fish ansible wget && \
+ echo "qemu:x:107:107:qemu user:/:/sbin/nologin" >> /etc/passwd && \
+ dnf -y install qemu-kvm libvirt virt-install virt-viewer && \
+ dnf -y install cockpit cockpit-bridge cockpit-file-sharing cockpit-machines cockpit-pcp cockpit-podman cockpit-storaged cockpit-system
+RUN git clone https://github.com/45drives/cockpit-zfs-manager.git /root/cockpit-zfs-manager && \
+ cp -r /root/cockpit-zfs-manager/zfs /usr/share/cockpit && \
+ rm -r /root/cockpit-zfs-manager
+RUN git clone https://github.com/jimsalterjrs/sanoid.git /root/sanoid && \
+ cd /root/sanoid && git checkout $(git tag | grep "^v" | tail -n 1) && cp sanoid syncoid findoid sleepymutex /usr/local/sbin && \
+ mkdir /etc/sanoid && cp sanoid.defaults.conf /etc/sanoid && touch /etc/sanoid/sanoid.conf && cp sanoid.conf /etc/sanoid/sanoid.example.conf && \
+ rm -r /root/sanoid
+RUN dnf -y install perl-Data-Dumper perl-Getopt-Long lzop mbuffer mhash pv && \
+ PERL_MM_USE_DEFAULT=1 cpan install Capture::Tiny && PERL_MM_USE_DEFAULT=1 cpan install Config::IniFiles
+RUN dnf -y install firewalld && \
+ systemctl enable firewalld