Merge "Add new container element - Rocky Linux"

This commit is contained in:
Zuul 2022-02-08 21:24:12 +00:00 committed by Gerrit Code Review
commit 2aa151b295
11 changed files with 62 additions and 1 deletions

View File

@ -121,6 +121,19 @@
base_element: fedora-container
release: '35'
- job:
name: dib-nodepool-functional-openstack-rockylinux-8-containerfile-src
description: |
Test building and booting a Rocky Linux image from a
containerfile with Nodepool and OpenStack (using released
libraries)
parent: dib-nodepool-functional-src-base
vars:
nodepool_debug: true
nodepool_diskimage:
base_element: rocky-container
release: '8'
- job:
name: dib-nodepool-functional-openstack-ubuntu-xenial-src
description: |

View File

@ -18,6 +18,8 @@
- dib-nodepool-functional-openstack-centos-8-stream-src
- dib-nodepool-functional-openstack-centos-9-stream-src
- dib-nodepool-functional-openstack-fedora-35-containerfile-src
- dib-nodepool-functional-openstack-rockylinux-8-containerfile-src:
voting: false
- dib-nodepool-functional-openstack-ubuntu-xenial-src
- dib-nodepool-functional-openstack-ubuntu-bionic-src
- dib-nodepool-functional-openstack-ubuntu-focal-src

View File

@ -26,7 +26,8 @@ log = logging.getLogger()
def os_family(distro):
family = None
if distro in ['fedora', 'rhel', 'rhel7', 'centos', 'centos7', 'openeuler']:
if distro in ['fedora', 'rhel', 'rhel7', 'centos', 'centos7', 'openeuler',
'rocky']:
family = 'redhat'
elif distro in ['debian', 'ubuntu']:
family = 'debian'

View File

@ -0,0 +1,9 @@
================
rocky-container
================
Create a minimal image based on Rocky Linux container image
This element sets the ``DISTRO_NAME`` var to 'rocky'. The release of
rocky to be installed can be controlled through the ``DIB_RELEASE``
variable, which defaults the latest supported release.

View File

@ -0,0 +1,7 @@
FROM docker.io/library/rockylinux:8
RUN dnf install -y findutils util-linux sudo python3 NetworkManager
RUN systemctl unmask console-getty.service dev-hugepages.mount \
getty.target sys-fs-fuse-connections.mount systemd-logind.service \
systemd-remount-fs.service

View File

@ -0,0 +1,8 @@
cache-url
containerfile
package-installs
redhat-common
rpm-distro
source-repositories
vm
yum

View File

@ -0,0 +1,4 @@
export DISTRO_NAME=rocky
export DIB_RELEASE=${DIB_RELEASE:-8} # always the most recent major
export EFI_BOOT_DIR="EFI/rocky"
export DIB_YUM_MINIMAL_CREATE_INTERFACES=0

View File

@ -0,0 +1 @@
export YUM=dnf

View File

@ -0,0 +1,13 @@
audit:
dnf-plugins-core:
dracut:
dracut-config-generic:
grubby:
kernel:
initscripts:
man-pages:
redhat-rpm-config:
linux-firmware:
uninstall: true
linux-firmware-whence:
uninstall: true

View File

@ -0,0 +1 @@
Verify we can build a rocky-container image.

View File

@ -0,0 +1,2 @@
openstack-ci-mirrors
vm