Skip to content
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 Oracle Linux 9 #595

Merged
merged 2 commits into from Aug 24, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 5 additions & 0 deletions images/oracle.yaml
Expand Up @@ -88,6 +88,7 @@ files:
DHCP_HOSTNAME=`cat /proc/sys/kernel/hostname`
releases:
- 8
- 9

- name: ifcfg-eth0.lxd
path: /etc/sysconfig/network-scripts/ifcfg-eth0
Expand All @@ -103,6 +104,7 @@ files:
IPV6INIT=yes
releases:
- 8
- 9

- name: network
path: /etc/sysconfig/network
Expand Down Expand Up @@ -140,6 +142,7 @@ files:
- cloud
releases:
- 8
- 9

- name: user-data
generator: cloud-init
Expand Down Expand Up @@ -185,6 +188,7 @@ packages:
action: install
releases:
- 8
- 9

- packages:
- cloud-init
Expand All @@ -205,6 +209,7 @@ packages:
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
releases:
- 8
- 9
variants:
- cloud

Expand Down
8 changes: 7 additions & 1 deletion jenkins/jobs/image-oracle.yaml
Expand Up @@ -19,6 +19,7 @@
values:
- 7
- 8
- 9

- axis:
name: variant
Expand All @@ -36,10 +37,15 @@
[ "${ARCH}" = "amd64" ] && ARCH="x86_64"
[ "${ARCH}" = "arm64" ] && ARCH="aarch64"

EXTRA_ARGS=""
if [ "${release}" = "9" ]; then
EXTRA_ARGS="-o source.url=https://yum.oracle.com/ISOS/OracleLinux"
fi

exec sudo /lxc-ci/bin/build-distro /lxc-ci/images/oracle.yaml \
${LXD_ARCHITECTURE} container 3600 ${WORKSPACE} \
-o image.architecture=${ARCH} -o image.release=${release} \
-o image.variant=${variant}
-o image.variant=${variant} ${EXTRA_ARGS}

properties:
- build-discarder:
Expand Down