-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
More example images #12
Open
oneswig
wants to merge
1
commit into
main
Choose a base branch
from
more-images
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# syntax=docker/dockerfile:1.4.3 | ||
|
||
FROM docker.io/library/rockylinux:8.8 | ||
|
||
ARG rocky_version=8.8 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Unused |
||
|
||
# /etc/machine-id needs to be populated for /bin/kernel-install to | ||
# correctly copy kernels into /boot. We will clear this out in the | ||
# final image. | ||
RUN systemd-machine-id-setup | ||
|
||
# Pin to an older version of Rocky Linux by setting a DNF package variable | ||
RUN echo "8.8" > /etc/dnf/vars/releasever && dnf update -y --refresh | ||
|
||
# Install/remove packages from https://git.rockylinux.org/rocky/kickstarts/-/blob/r8/Rocky-8-GenericCloud.ks | ||
RUN dnf install -y @core --allowerasing | ||
RUN dnf install -y chrony dnf yum cloud-init cloud-utils-growpart NetworkManager \ | ||
findutils util-linux sudo python3 \ | ||
dracut-config-generic dracut-norescue firewalld gdisk grub2 \ | ||
kernel nfs-utils rsync tar dnf-utils yum-utils \ | ||
python3-jsonschema qemu-guest-agent dhcp-client \ | ||
rocky-release rng-tools | ||
RUN dnf erase -y aic94xx-firmware alsa-firmware alsa-lib alsa-tools-firmware \ | ||
ivtv-firmware iwl100-firmware iwl1000-firmware iwl105-firmware \ | ||
iwl135-firmware iwl2000-firmware iwl2030-firmware iwl3160-firmware \ | ||
iwl3945-firmware iwl4965-firmware iwl5000-firmware iwl5150-firmware \ | ||
iwl6000-firmware iwl6000g2a-firmware iwl6000g2b-firmware iwl6050-firmware \ | ||
iwl7260-firmware libertas-sd8686-firmware libertas-sd8787-firmware \ | ||
libertas-usb8388-firmware biosdevname iprutils plymouth | ||
|
||
RUN systemctl unmask console-getty.service dev-hugepages.mount \ | ||
getty.target sys-fs-fuse-connections.mount systemd-logind.service \ | ||
systemd-remount-fs.service |
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 |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# syntax=docker/dockerfile:1.4.3 | ||
|
||
FROM docker.io/library/rockylinux:8.8 | ||
|
||
# /etc/machine-id needs to be populated for /bin/kernel-install to | ||
# correctly copy kernels into /boot. We will clear this out in the | ||
# final image. | ||
RUN systemd-machine-id-setup | ||
|
||
# Pin to an older version of Rocky Linux by setting a DNF package variable | ||
RUN echo "8.8" > /etc/dnf/vars/releasever && dnf update -y --refresh | ||
|
||
# Install/remove packages from https://git.rockylinux.org/rocky/kickstarts/-/blob/r8/Rocky-8-GenericCloud.ks | ||
RUN dnf install -y @core --allowerasing | ||
RUN dnf install -y chrony dnf yum cloud-init cloud-utils-growpart NetworkManager \ | ||
findutils util-linux sudo python3 \ | ||
dracut-config-generic dracut-norescue firewalld gdisk grub2 \ | ||
kernel nfs-utils rsync tar dnf-utils yum-utils \ | ||
python3-jsonschema qemu-guest-agent dhcp-client \ | ||
rocky-release rng-tools | ||
RUN dnf erase -y aic94xx-firmware alsa-firmware alsa-lib alsa-tools-firmware \ | ||
ivtv-firmware iwl100-firmware iwl1000-firmware iwl105-firmware \ | ||
iwl135-firmware iwl2000-firmware iwl2030-firmware iwl3160-firmware \ | ||
iwl3945-firmware iwl4965-firmware iwl5000-firmware iwl5150-firmware \ | ||
iwl6000-firmware iwl6000g2a-firmware iwl6000g2b-firmware iwl6050-firmware \ | ||
iwl7260-firmware libertas-sd8686-firmware libertas-sd8787-firmware \ | ||
libertas-usb8388-firmware biosdevname iprutils plymouth | ||
|
||
RUN systemctl unmask console-getty.service dev-hugepages.mount \ | ||
getty.target sys-fs-fuse-connections.mount systemd-logind.service \ | ||
systemd-remount-fs.service | ||
|
||
# Apply OFED installation | ||
# FIXME: the hardcoded kernel version should be dynamically deduced | ||
RUN dnf config-manager --set-enabled powertools && dnf install -y perl cmake kernel-devel \ | ||
python36-devel perl-generators python36 rpm-build elfutils-libelf-devel zlib-devel \ | ||
gcc-c++ gdb-headless glib2-devel patch lsof libmnl-devel openssl-devel pciutils-devel \ | ||
pkgconf-pkg-config libstdc++-devel libnl3-devel libtool python3-docutils numactl-devel \ | ||
systemd-devel kernel-rpm-macros glibc-devel pciutils gcc valgrind-devel iptables-devel \ | ||
bison libdb-devel elfutils-devel tcsh binutils-devel flex gcc-gfortran python3-Cython | ||
|
||
# Apply all package updates ahead of OFED installation to avoid dependency wrangling later | ||
RUN dnf update -y | ||
|
||
RUN curl -L https://content.mellanox.com/ofed/MLNX_OFED-23.04-1.1.3.0/MLNX_OFED_SRC-23.04-1.1.3.0.tgz --output /tmp/MLNX_OFED_SRC-23.04-1.1.3.0.tgz \ | ||
&& cd /tmp \ | ||
&& tar -xzf MLNX_OFED_SRC-23.04-1.1.3.0.tgz \ | ||
&& /tmp/MLNX_OFED_SRC-23.04-1.1.3.0/install.pl --hpc --kernel $(cd /lib/modules && ls -t1 | head -n 1) -vvv \ | ||
&& rm -rf /tmp/MLNX_OFED_SRC-23.04-1.1.3.0* | ||
|
||
# This package causes us problems later on due to a higher epoch | ||
# assigned to a lower version of OpenMPI 4 built by Rocky Linux | ||
RUN dnf install -y python3-dnf-plugin-versionlock && yum versionlock openmpi |
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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# syntax=docker/dockerfile:1.4.3 | ||
|
||
FROM docker.io/library/rockylinux:9.1 | ||
|
||
ARG rocky_version=9.1 | ||
|
||
# /etc/machine-id needs to be populated for /bin/kernel-install to | ||
# correctly copy kernels into /boot. We will clear this out in the | ||
# final image. | ||
#RUN systemd-machine-id-setup | ||
|
||
# Pin to an older version of Rocky Linux by setting a DNF package variable | ||
RUN echo "9.1" > /etc/dnf/vars/releasever && echo "vault/rocky" > /etc/dnf/vars/contentdir && sed -e 's|^mirrorlist|#mirrorlist|' -e 's/^#baseurl=/baseurl=/' -i /etc/yum.repos.d/rocky*.repo && dnf update -y --refresh | ||
|
||
# Install/remove packages from https://git.rockylinux.org/rocky/kickstarts/-/blob/r8/Rocky-8-GenericCloud.ks | ||
RUN dnf install -y @core --allowerasing | ||
RUN dnf install -y chrony dnf yum cloud-init cloud-utils-growpart \ | ||
dracut-config-generic firewalld gdisk grub2 \ | ||
kernel nfs-utils rsync tar dnf-utils yum-utils \ | ||
python3-jsonschema dhcp-client \ | ||
rocky-release rng-tools initscripts | ||
RUN dnf erase -y aic94xx-firmware alsa-firmware alsa-lib alsa-tools-firmware \ | ||
ivtv-firmware iwl100-firmware iwl1000-firmware iwl105-firmware \ | ||
iwl135-firmware iwl2000-firmware iwl2030-firmware iwl3160-firmware \ | ||
iwl3945-firmware iwl4965-firmware iwl5000-firmware iwl5150-firmware \ | ||
iwl6000-firmware iwl6000g2a-firmware iwl6000g2b-firmware iwl6050-firmware \ | ||
iwl7260-firmware libertas-sd8686-firmware libertas-sd8787-firmware \ | ||
libertas-usb8388-firmware biosdevname iprutils plymouth | ||
|
||
RUN systemctl unmask console-getty.service dev-hugepages.mount \ | ||
getty.target sys-fs-fuse-connections.mount systemd-logind.service \ | ||
systemd-remount-fs.service |
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 |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# syntax=docker/dockerfile:1.4.3 | ||
|
||
FROM docker.io/library/rockylinux:9.1 | ||
|
||
# Pin to an older version of Rocky Linux by setting a DNF package variable | ||
RUN echo "9.1" > /etc/dnf/vars/releasever && echo "vault/rocky" > /etc/dnf/vars/contentdir && sed -e 's|^mirrorlist|#mirrorlist|' -e 's/^#baseurl=/baseurl=/' -i /etc/yum.repos.d/rocky*.repo && dnf update -y --refresh | ||
|
||
|
||
# /etc/machine-id needs to be populated for /bin/kernel-install to | ||
# correctly copy kernels into /boot. We will clear this out in the | ||
# final image. | ||
RUN dnf install -y systemd | ||
RUN /usr/bin/systemd-machine-id-setup | ||
|
||
# Install/remove packages from https://git.rockylinux.org/rocky/kickstarts/-/blob/r8/Rocky-8-GenericCloud.ks | ||
RUN dnf install -y @core --allowerasing | ||
RUN dnf install -y chrony dnf yum cloud-init cloud-utils-growpart \ | ||
dracut-config-generic firewalld gdisk grub2 \ | ||
kernel nfs-utils rsync tar dnf-utils yum-utils \ | ||
python3-jsonschema dhcp-client \ | ||
rocky-release rng-tools initscripts | ||
RUN dnf erase -y aic94xx-firmware alsa-firmware alsa-lib alsa-tools-firmware \ | ||
ivtv-firmware iwl100-firmware iwl1000-firmware iwl105-firmware \ | ||
iwl135-firmware iwl2000-firmware iwl2030-firmware iwl3160-firmware \ | ||
iwl3945-firmware iwl4965-firmware iwl5000-firmware iwl5150-firmware \ | ||
iwl6000-firmware iwl6000g2a-firmware iwl6000g2b-firmware iwl6050-firmware \ | ||
iwl7260-firmware libertas-sd8686-firmware libertas-sd8787-firmware \ | ||
libertas-usb8388-firmware biosdevname iprutils plymouth | ||
|
||
RUN systemctl unmask console-getty.service dev-hugepages.mount \ | ||
getty.target sys-fs-fuse-connections.mount systemd-logind.service \ | ||
systemd-remount-fs.service | ||
|
||
# Apply OFED installation | ||
RUN dnf config-manager --set-enabled appstream crb && dnf install -y perl cmake kernel-devel \ | ||
python3-devel perl-generators python3 rpm-build elfutils-libelf-devel zlib-devel \ | ||
gcc-c++ gdb-headless glib2-devel patch lsof libmnl openssl-devel pciutils-devel \ | ||
pkgconf-pkg-config libstdc++-devel libnl3-devel libtool numactl-devel \ | ||
systemd-devel kernel-rpm-macros glibc-devel pciutils gcc valgrind-devel iptables-devel \ | ||
bison libdb-devel elfutils-devel tcsh binutils-devel flex gcc-gfortran \ | ||
python3-Cython python3-docutils libmnl-devel | ||
|
||
RUN curl -L https://content.mellanox.com/ofed/MLNX_OFED-5.8-1.1.2.1/MLNX_OFED_SRC-5.8-1.1.2.1.tgz --output /tmp/MLNX_OFED_SRC-5.8-1.1.2.1.tgz \ | ||
&& cd /tmp \ | ||
&& tar -xzf MLNX_OFED_SRC-5.8-1.1.2.1.tgz \ | ||
&& /tmp/MLNX_OFED_SRC-5.8-1.1.2.1/install.pl --hpc --kernel $(cd /lib/modules && ls -t1 | head -n 1) \ | ||
&& rm -rf /tmp/MLNX_OFED_SRC-5.8-1.1.2.1* |
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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# syntax=docker/dockerfile:1.4.3 | ||
|
||
FROM docker.io/library/rockylinux:9.2 | ||
|
||
ARG rocky_version=9.2 | ||
|
||
# /etc/machine-id needs to be populated for /bin/kernel-install to | ||
# correctly copy kernels into /boot. We will clear this out in the | ||
# final image. | ||
#RUN systemd-machine-id-setup | ||
|
||
# Pin to an older version of Rocky Linux by setting a DNF package variable | ||
RUN echo "9.2" > /etc/dnf/vars/releasever && dnf update -y --refresh | ||
|
||
# Install/remove packages from https://git.rockylinux.org/rocky/kickstarts/-/blob/r8/Rocky-8-GenericCloud.ks | ||
RUN dnf install -y @core --allowerasing | ||
RUN dnf install -y chrony dnf yum cloud-init cloud-utils-growpart \ | ||
dracut-config-generic firewalld gdisk grub2 \ | ||
kernel nfs-utils rsync tar dnf-utils yum-utils \ | ||
python3-jsonschema dhcp-client \ | ||
rocky-release rng-tools initscripts | ||
RUN dnf erase -y aic94xx-firmware alsa-firmware alsa-lib alsa-tools-firmware \ | ||
ivtv-firmware iwl100-firmware iwl1000-firmware iwl105-firmware \ | ||
iwl135-firmware iwl2000-firmware iwl2030-firmware iwl3160-firmware \ | ||
iwl3945-firmware iwl4965-firmware iwl5000-firmware iwl5150-firmware \ | ||
iwl6000-firmware iwl6000g2a-firmware iwl6000g2b-firmware iwl6050-firmware \ | ||
iwl7260-firmware libertas-sd8686-firmware libertas-sd8787-firmware \ | ||
libertas-usb8388-firmware biosdevname iprutils plymouth | ||
|
||
RUN systemctl unmask console-getty.service dev-hugepages.mount \ | ||
getty.target sys-fs-fuse-connections.mount systemd-logind.service \ | ||
systemd-remount-fs.service |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The repos in this image just pull from the main RL8 mirror, so it's not necessarily going to stay at 8.8