Skip to content

Commit

Permalink
WIP: Build SCOS by default (for CI testing)
Browse files Browse the repository at this point in the history
  • Loading branch information
travier committed Apr 22, 2022
1 parent 4eafe81 commit 98739e8
Show file tree
Hide file tree
Showing 8 changed files with 87 additions and 85 deletions.
17 changes: 17 additions & 0 deletions ci/build-test-qemu-rhcos.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/bash
set -xeuo pipefail
# This script is the entrypoint for PRs to this repo via OpenShift Prow.
dn=$(dirname "${0}")
# Prow jobs don't support adding emptydir today
export COSA_SKIP_OVERLAY=1
# Create a temporary cosa workdir if COSA_DIR is not set.
cosa_dir="${COSA_DIR:-$(mktemp -d)}"
echo "Using ${cosa_dir} for build"
cd "${cosa_dir}"
cosa init /src

# Default to building RHCOS unless we were explicitely called to build SCOS
if [[ "${#}" -eq 1 ]] && [[ "${1}" == "scos" ]]; then
exec "${dn}/prow-build-test-qemu.sh" scos
fi
exec "${dn}/prow-build-test-qemu.sh"
2 changes: 1 addition & 1 deletion ci/build-test-qemu-scos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
set -xeuo pipefail
# SCOS wrapper for the entrypoint for PRs to this repo via OpenShift Prow.
dn=$(dirname "${0}")
exec "${dn}/prow-build-test-qemu.sh" scos
exec "${dn}/build-test-qemu-rhcos.sh" scos
17 changes: 0 additions & 17 deletions ci/build-test-qemu.sh

This file was deleted.

1 change: 1 addition & 0 deletions ci/build-test-qemu.sh
6 changes: 3 additions & 3 deletions ci/prow-build-test-qemu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ if test '!' -w src/config; then
fi

# Replace manifest.yaml symlink to point to SCOS
if [[ "${KIND}" == "scos" ]]; then
ln -sf manifest-scos.yaml src/config/manifest.yaml
fi
# if [[ "${KIND}" == "scos" ]]; then
# ln -sf manifest-scos.yaml src/config/manifest.yaml
# fi

# Grab the raw value of `mutate-os-release` and use sed to convert the value
# to X-Y format
Expand Down
2 changes: 1 addition & 1 deletion ci/prow-thisrepo-entrypoint.sh
62 changes: 62 additions & 0 deletions extensions-rhcos.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
# RPMs as operating system extensions, distinct from the base ostree commit/image
# https://github.com/openshift/enhancements/blob/master/enhancements/rhcos/extensions.md
# and https://github.com/coreos/fedora-coreos-tracker/issues/401

repos:
- rhel-8-nfv

extensions:
# https://github.com/coreos/fedora-coreos-tracker/issues/326
usbguard:
packages:
- usbguard
kerberos:
packages:
- krb5-workstation
- libkadm5
# https://github.com/kmods-via-containers/kmods-via-containers/issues/3
# https://gitlab.cee.redhat.com/coreos/redhat-coreos/merge_requests/866
# These are currently overlaid onto the host so that they can be bind-mounted
# into build containers... in the future they should be a `development`
# extension: https://github.com/openshift/machine-config-operator/pull/2143.
kernel-devel:
packages:
- kernel-devel
- kernel-headers
match-base-evr: kernel
# These are already in the base, so they're not OS extensions, but they're
# useful to have in RPM form to install in kmod build containers.
kernel:
kind: development
packages:
- kernel
- kernel-core
- kernel-modules
- kernel-modules-extra
match-base-evr: kernel
# GRPA-2822
# https://github.com/openshift/machine-config-operator/pull/1330
# https://github.com/openshift/enhancements/blob/master/enhancements/support-for-realtime-kernel.md
kernel-rt:
architectures:
- x86_64
packages:
- kernel-rt-core
- kernel-rt-kvm
- kernel-rt-modules
- kernel-rt-modules-extra
- kernel-rt-devel
# https://github.com/openshift/machine-config-operator/pull/2456
# https://github.com/openshift/enhancements/blob/master/enhancements/sandboxed-containers/sandboxed-containers-tech-preview.md
# GRPA-3123
# - kata-containers (RHAOS)
sandboxed-containers:
architectures:
- x86_64
modules:
enable:
- virt:rhel
repos:
- rhel-8-appstream
packages:
- kata-containers
62 changes: 0 additions & 62 deletions extensions.yaml

This file was deleted.

1 change: 1 addition & 0 deletions extensions.yaml
2 changes: 1 addition & 1 deletion manifest.yaml

0 comments on commit 98739e8

Please sign in to comment.