-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Support building offline OS bundles for Oracle Linux 9.4 (#1192)
* feat: Builds oracle-9.4 offline package feat: add Oracle Linux 9.4 vSphere build configuration * chore: removed debug statement and comments from GHA * removes pre-commit changes * removes the non-offline oracle-9.4 tests from the GHA files * installs tar and container-selinux packages for oracle-9.4 offline/online modes * Adds online modes 'basic' and 'fips' for oracle-9.4 on vsphere to e2e tests GHA
- Loading branch information
1 parent
1aa335b
commit f8da088
Showing
13 changed files
with
97 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,6 +35,10 @@ jobs: | |
buildConfig: "basic" | ||
- os: "oracle 9.4" | ||
buildConfig: "fips" | ||
- os: "oracle 9.4" | ||
buildConfig: "offline" | ||
- os: "oracle 9.4" | ||
buildConfig: "offline-fips" | ||
- os: "flatcar" | ||
buildConfig: "basic" | ||
runs-on: | ||
|
@@ -58,7 +62,7 @@ jobs: | |
with: | ||
username: ${{ secrets.NEXUS_USERNAME }} | ||
password: ${{ secrets.NEXUS_PASSWORD }} | ||
|
||
- name: Login to D2iQ's Mirror Registry | ||
uses: docker/login-action@v3 | ||
with: | ||
|
@@ -73,7 +77,7 @@ jobs: | |
uses: webfactory/[email protected] | ||
with: | ||
ssh-private-key: ${{ secrets.SSH_BASTION_KEY_CONTENTS }} | ||
|
||
# configure git to access private repo hosting vsphere module mesosphere/vcenter-tools | ||
- name: Configure git to clone private registry from mesosphere org | ||
run: | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#!/bin/bash | ||
set -x | ||
set -euo pipefail | ||
|
||
# When yum operates on multiple packages, it does not, by default, return an error if a subset | ||
# of packages is not found. This makes yum return an error. | ||
echo skip_missing_names_on_install=False >> /etc/yum.conf | ||
|
||
# Install required tools for repository creation | ||
yum -y install epel-release gettext dnf-utils createrepo modulemd-tools yum-utils | ||
yum clean all | ||
|
||
TMP_DIR="$(mktemp -d repodata-XXXX)" | ||
chmod 777 -R "${TMP_DIR}" | ||
cp packages.txt "${TMP_DIR}" | ||
pushd "${TMP_DIR}" | ||
#shellcheck disable=SC2046 | ||
repoquery --archlist=x86_64,noarch --resolve --requires --recursive $(< packages.txt) | xargs -r yumdownloader --archlist=x86_64,noarch -x \*i686 | ||
#shellcheck disable=SC2046 | ||
yumdownloader --archlist=x86_64,noarch -x \*i686 $(< packages.txt) | ||
rm packages.txt | ||
|
||
createrepo -v . | ||
repo2module . --module-name offline | ||
createrepo_mod . | ||
|
||
# Package the repository into a tarball with proper permissions | ||
#shellcheck disable=SC1083,SC2035 | ||
tar -czf {{ .OutputDirectory }}/{{ .KubernetesVersion }}_oraclelinux_9.4_x86_64{{ .FipsSuffix }}.tar.gz * | ||
#shellcheck disable=SC1083,SC2035 | ||
chmod 777 {{ .OutputDirectory }}/{{ .KubernetesVersion }}_oraclelinux_9.4_x86_64{{ .FipsSuffix }}.tar.gz | ||
|
||
# Return to the original directory and clean up | ||
popd | ||
rm -rf "${TMP_DIR}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
audit | ||
ca-certificates | ||
conntrack-tools | ||
chrony | ||
open-vm-tools | ||
python3-pip | ||
socat | ||
sysstat | ||
dnf-utils | ||
yum-utils | ||
yum-plugin-versionlock | ||
NetworkManager | ||
cloud-init | ||
cloud-utils-growpart | ||
container-selinux | ||
{{ if .FetchKubernetesRPMs -}} | ||
kubectl-{{ .KubernetesVersion }}-0 | ||
kubelet-{{ .KubernetesVersion }}-0 | ||
kubeadm-{{ .KubernetesVersion }}-0 | ||
cri-tools | ||
{{- end }} | ||
conntrack | ||
ebtables | ||
ethtool | ||
iproute | ||
iptables | ||
socat | ||
gcc | ||
libseccomp | ||
nfs-utils | ||
sssd-kcm | ||
iptables-libs | ||
libnftnl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[kubernetes] | ||
name=Konvoy Kubernetes package repository | ||
baseurl=https://packages.d2iq.com/konvoy/stable/linux/repos/el/kubernetes-v{{ .KubernetesVersion }}-{{ .RepoSuffix }}/x86_64 | ||
gpgcheck=1 | ||
gpgkey=https://packages.d2iq.com/konvoy/stable/linux/repos/d2iq-sign-authority-gpg-public-key |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,6 +18,7 @@ var ( | |
"rocky-9.1", | ||
"ubuntu-18.04", | ||
"ubuntu-20.04", | ||
"oracle-9.4", | ||
} | ||
) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters