Merge "Add new container element - Rocky Linux"
This commit is contained in:
commit
2aa151b295
@ -121,6 +121,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: |
|
||||||
|
@ -18,6 +18,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