Add new container element - Rocky Linux
Introduce new container image for Rocky Linux, a downstream clone of Red Hat Enterprise Linux. Keep non-voting in Check for a while before adding to any gate checks Signed-off-by: Neil Hanlon <neil@shrug.pw> Change-Id: Ib383f60bc23b434b400f85c376840a000cafc697 Related-Bug: https://review.opendev.org/805800/
This commit is contained in:
parent
8690088ecd
commit
398e07e6f2
@ -132,6 +132,19 @@
|
|||||||
base_element: fedora-container
|
base_element: fedora-container
|
||||||
release: '35'
|
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:
|
- job:
|
||||||
name: dib-nodepool-functional-openstack-ubuntu-xenial-src
|
name: dib-nodepool-functional-openstack-ubuntu-xenial-src
|
||||||
description: |
|
description: |
|
||||||
|
@ -19,6 +19,8 @@
|
|||||||
- dib-nodepool-functional-openstack-centos-8-stream-src
|
- dib-nodepool-functional-openstack-centos-8-stream-src
|
||||||
- dib-nodepool-functional-openstack-centos-9-stream-src
|
- dib-nodepool-functional-openstack-centos-9-stream-src
|
||||||
- dib-nodepool-functional-openstack-fedora-35-containerfile-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-xenial-src
|
||||||
- dib-nodepool-functional-openstack-ubuntu-bionic-src
|
- dib-nodepool-functional-openstack-ubuntu-bionic-src
|
||||||
- dib-nodepool-functional-openstack-ubuntu-focal-src
|
- dib-nodepool-functional-openstack-ubuntu-focal-src
|
||||||
|
@ -26,7 +26,8 @@ log = logging.getLogger()
|
|||||||
|
|
||||||
def os_family(distro):
|
def os_family(distro):
|
||||||
family = None
|
family = None
|
||||||
if distro in ['fedora', 'rhel', 'rhel7', 'centos', 'centos7', 'openeuler']:
|
if distro in ['fedora', 'rhel', 'rhel7', 'centos', 'centos7', 'openeuler',
|
||||||
|
'rocky']:
|
||||||
family = 'redhat'
|
family = 'redhat'
|
||||||
elif distro in ['debian', 'ubuntu']:
|
elif distro in ['debian', 'ubuntu']:
|
||||||
family = 'debian'
|
family = 'debian'
|
||||||
|
9
diskimage_builder/elements/rocky-container/README.rst
Normal file
9
diskimage_builder/elements/rocky-container/README.rst
Normal 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.
|
@ -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
|
8
diskimage_builder/elements/rocky-container/element-deps
Normal file
8
diskimage_builder/elements/rocky-container/element-deps
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
cache-url
|
||||||
|
containerfile
|
||||||
|
package-installs
|
||||||
|
redhat-common
|
||||||
|
rpm-distro
|
||||||
|
source-repositories
|
||||||
|
vm
|
||||||
|
yum
|
@ -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
|
@ -0,0 +1 @@
|
|||||||
|
export YUM=dnf
|
@ -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
|
@ -0,0 +1 @@
|
|||||||
|
Verify we can build a rocky-container image.
|
@ -0,0 +1,2 @@
|
|||||||
|
openstack-ci-mirrors
|
||||||
|
vm
|
Loading…
Reference in New Issue
Block a user