builder: New container image

This will be the container image buildroot.

TODO: Build this using RHTAP too
This commit is contained in:
Colin Walters committed 2023-11-04 13:05:03 -04:00
1 parent de17d5f8d4
commit 9c7a8face4
4 files changed
+71

No files matched your search

+5
View File
@@ -0,0 +1,5 @@
# This image contains the baseline tools to build bootable base images.
FROM quay.io/centos/centos:stream9
COPY coreos-continuous.repo /etc/yum.repos.d
COPY . /src
RUN /src/build.sh && cd / && rm /src -rf
+21
View File
@@ -0,0 +1,21 @@
#!/bin/bash
set -xeuo pipefail
pkginstall() {
dnf -y install "$@"
}
pkginstall dnf-utils
dnf config-manager --set-enabled crb
# Sadly there's no EPEL for s390x so we just hardcode this for now, it's noarch.
dnf -y install https://kojipkgs.fedoraproject.org//packages/distribution-gpg-keys/1.98/1.el9/noarch/distribution-gpg-keys-1.98-1.el9.noarch.rpm
# rpm-ostree for builds, and need skopeo to do the container backend
pkginstall rpm-ostree skopeo
# For derived container builds
pkginstall buildah
# And a rust toolchain
pkginstall cargo openssl-devel
# Build tools
pkginstall selinux-policy-targeted osbuild crypto-policies-scripts sudo
+10
View File
@@ -0,0 +1,10 @@
[copr:copr.fedorainfracloud.org:group_CoreOS:continuous]
name=Copr repo for continuous owned by @CoreOS
baseurl=https://download.copr.fedorainfracloud.org/results/@CoreOS/continuous/centos-stream-9-$basearch/
type=rpm-md
skip_if_unavailable=True
gpgcheck=1
gpgkey=https://download.copr.fedorainfracloud.org/results/@CoreOS/continuous/pubkey.gpg
repo_gpgcheck=0
enabled=1
enabled_metadata=1