-
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
Add custom rocky dockerfiles #53
base: master
Are you sure you want to change the base?
Conversation
This is to workaround the issue: ``` Unable to find a system nic for <MAC_ADDRESS> ``` See: https://askubuntu.com/questions/1400527/unable-to-find-a-system-nic-while-running-cloud-init
This is to support some older raid controllers that were previously supported out of the box in CentOS7.
Assorted changes to rocky-container image
This means that you don't need an internet connection to download the GPG keys. This is useful if you run a local pulp.
* Build OFED from source, to match latest kernel * Tidy up OFED build Co-authored-by: root <[email protected]>
[baseos] | ||
name=Rocky Linux $releasever - BaseOS | ||
enabled=1 | ||
baseurl=https://pulp.128-232-222-245.sslip.io/pulp/content/rocky/8.6/BaseOS/x86_64/os/20220914T080246/ |
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.
This really should somehow be a variable
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.
Seems like the best way would be if we had build arg support in DIB for the containerfile element?
# CentOS 7. We now need an alternative source. Don't leave elrepo installed | ||
# to avoid installing other packages of unknown providence. | ||
RUN rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org \ | ||
&& dnf install -y https://www.elrepo.org/elrepo-release-8.el8.elrepo.noarch.rpm \ |
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.
possibly we should layer this on top of a more generic image
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.
Would be good to get this in so it is at least a bit more official. Referring to an unmerged branch in client kayobe config isn't ideal. Can we iterate on after merging?
getty.target sys-fs-fuse-connections.mount systemd-logind.service \ | ||
systemd-remount-fs.service | ||
|
||
RUN curl -L https://www.mellanox.com/downloads/ofed/MLNX_OFED-5.7-1.0.2.0/MLNX_OFED_SRC-5.7-1.0.2.0.tgz --output /tmp/MLNX_OFED_SRC-5.7-1.0.2.0.tgz \ |
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.
Would be good to parameterise the version of OFED as well
@@ -0,0 +1,17 @@ | |||
======================= | |||
rocky custom containers |
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.
rocky container pulp
overcloud_dib_os_element: rocky-container | ||
|
||
overcloud_dib_env_vars_extra: | ||
DIB_CONTAINERFILE_DOCKERFILE: "{{ source_checkout_path }}/stackhpc-image-elements/elements/rocky-container-pulp/8.5-pulp |
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.
It would be nice if pulling in this element did this for you
|
||
# To build this image you need enable docker build kit. This is for the heredoc support. | ||
|
||
FROM docker.io/library/rockylinux:8 |
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.
Might need the 8.6 tag instead of the 8 tag?
&& cd /tmp \ | ||
&& tar -xzf MLNX_OFED_SRC-5.7-1.0.2.0.tgz \ | ||
&& dnf install -y perl cmake kernel-devel python36-devel perl-generators python36 python3-Cython 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 \ | ||
&& /tmp/MLNX_OFED_SRC-5.7-1.0.2.0/install.pl --hypervisor --kernel 4.18.0-372.26.1.el8_6.x86_64 \ |
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.
Is it possible to figure out the installed kernel version - can we assign a variable for this by running a command in the dockerfile?
No description provided.