Skip to content

Commit

Permalink
builder: New container image
Browse files Browse the repository at this point in the history
This will be the container image buildroot.
  • Loading branch information
cgwalters committed Nov 4, 2023
1 parent de17d5f commit 53c3622
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
7 changes: 7 additions & 0 deletions builder/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# This image contains the baseline tools to build bootable base images.
FROM quay.io/centos/centos:stream9
WORKDIR /src
COPY . .
RUN ./build.sh && cd / && rm /src -rf
WORKDIR /

21 changes: 21 additions & 0 deletions builder/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/bash
set -xeuo pipefail

pkginstall() {
dnf -y install "$@"
}

pkginstall dnf-utils
dnf config-manager --set-enabled crb
pkginstall epel-release epel-next-release
# The repo files reference GPG keys
pkginstall distribution-gpg-keys
# 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

0 comments on commit 53c3622

Please sign in to comment.