-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP: Build SCOS by default (for CI testing)
- Loading branch information
Showing
8 changed files
with
87 additions
and
85 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
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" |
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 was deleted.
Oops, something went wrong.
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 @@ | ||
build-test-qemu-scos.sh |
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 |
---|---|---|
@@ -1 +1 @@ | ||
build-test-qemu.sh | ||
build-test-qemu-scos.sh |
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,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 |
This file was deleted.
Oops, something went wrong.
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 @@ | ||
extensions-scos.yaml |
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 |
---|---|---|
@@ -1 +1 @@ | ||
manifest-rhcos.yaml | ||
manifest-scos.yaml |