-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Introduce RHEL family - merges the files for rockylinux and almalinux into a rhel dockerfile - decided not to add fedora into this since, it requires to add the epel packages, which might make fedora too close to rhel for our community users. But wonder what you think, is it a good/bad idea to try to also merge that one? Clean up fedora dockerfile - remove packages which are already installed by default "coreutils" and "curl" - make it similar to the other dockerfiles for easier maintenance Signed-off-by: Mauro Morales <[email protected]> * Add fedora to rhel family Signed-off-by: Mauro Morales <[email protected]> * Introduce inbetween stage for readability Signed-off-by: Mauro Morales <[email protected]> --------- Signed-off-by: Mauro Morales <[email protected]>
- Loading branch information
1 parent
1ad015a
commit bd83ec9
Showing
5 changed files
with
31 additions
and
132 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,24 @@ | ||
ARG BASE_IMAGE=rockylinux:9 | ||
ARG BASE_IMAGE | ||
ARG FLAVOR | ||
|
||
FROM $BASE_IMAGE | ||
FROM $BASE_IMAGE AS base | ||
|
||
RUN echo "install_weak_deps=False" >> /etc/dnf/dnf.conf | ||
|
||
# Install packages according to distro | ||
# epel-packages https://docs.fedoraproject.org/en-US/epel/ | ||
FROM base AS epel | ||
RUN dnf install -y epel-release && dnf clean all | ||
RUN dnf install -y "https://zfsonlinux.org/epel/zfs-release-2-3$(rpm --eval "%{dist}").noarch.rpm" && dnf clean all | ||
|
||
FROM epel AS almalinux | ||
FROM epel AS rockylinux | ||
|
||
FROM base AS fedora | ||
RUN dnf install -y "https://zfsonlinux.org/fedora/zfs-release-2-3$(rpm --eval "%{dist}").noarch.rpm" && dnf clean all | ||
|
||
# install common packages | ||
FROM ${FLAVOR} AS common | ||
RUN dnf update -y | ||
RUN dnf makecache | ||
RUN dnf install -y \ | ||
|
@@ -19,16 +33,17 @@ RUN dnf install -y \ | |
dhcp-client \ | ||
e2fsprogs \ | ||
efibootmgr \ | ||
epel-release \ | ||
gawk \ | ||
gdisk \ | ||
grub2 \ | ||
grub2-efi-x64 \ | ||
grub2-efi-x64-modules \ | ||
grub2-pc \ | ||
haveged \ | ||
kernel \ | ||
kernel-modules \ | ||
kernel-modules-extra \ | ||
less \ | ||
livecd-tools \ | ||
lvm2 \ | ||
nano \ | ||
|
@@ -43,12 +58,12 @@ RUN dnf install -y \ | |
systemd \ | ||
systemd-networkd \ | ||
systemd-resolved \ | ||
systemd-timesyncd \ | ||
tar \ | ||
which \ | ||
https://zfsonlinux.org/epel/zfs-release-2-2.el9.noarch.rpm \ | ||
&& dnf clean all | ||
zfs && dnf clean all | ||
|
||
# Final setup | ||
FROM common | ||
RUN mkdir -p /run/lock | ||
RUN touch /usr/libexec/.keep | ||
RUN systemctl enable [email protected] | ||
|