Skip to content
This repository was archived by the owner on May 24, 2024. It is now read-only.

Commit 71cbd22

Browse files
authored
Merge pull request #478 from cgwalters/containerfile.c10s
Add c10s
2 parents 52bc372 + 254c7b2 commit 71cbd22

File tree

4 files changed

+34
-2
lines changed

4 files changed

+34
-2
lines changed

.github/workflows/build-image.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ jobs:
1111
build-image:
1212
runs-on: ubuntu-latest
1313

14-
# Yes, this is a one-element matrix, but we may add c10s in the future soon
1514
strategy:
1615
matrix:
17-
os: [centos]
1816
include:
1917
- os: centos
2018
version: stream9
19+
- os: centos
20+
version: stream10
2121

2222
steps:
2323
- name: Update podman

Containerfile.centos-stream10

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# See Containerfile.centos-stream9 for more information.
2+
3+
FROM quay.io/centos/centos:stream10-development as repos
4+
5+
FROM quay.io/centos-bootc/bootc-image-builder:latest as builder
6+
ARG MANIFEST=centos-stream-10-tier1.yaml
7+
RUN --mount=type=bind,rw=true,src=.,dst=/buildcontext,bind-propagation=shared rm -vf /buildcontext/*.repo
8+
# XXX: we should just make sure our in-tree c9s repo points to the c9s paths and doesn't require vars to avoid these steps entirely
9+
COPY --from=repos /etc/dnf/vars /etc/dnf/vars
10+
COPY --from=repos /etc/yum.repos.d/centos.repo c10s.repo
11+
COPY --from=repos /etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial /etc/pki/rpm-gpg
12+
# rpm-ostree doesn't honor /etc/dnf/vars right now
13+
RUN for n in $(ls /etc/dnf/vars); do v=$(cat /etc/dnf/vars/$n); sed -ie s,\$${n},$v, c10s.repo; done
14+
RUN --mount=type=cache,target=/workdir --mount=type=bind,rw=true,src=.,dst=/buildcontext,bind-propagation=shared \
15+
cp -a /buildcontext /src && rm -vf /src/*.repo && cp -a c10s.repo /src && ls -al /src &&\
16+
rpm-ostree compose image --cachedir=/workdir --format=ociarchive --initialize /src/${MANIFEST} /buildcontext/out.ociarchive
17+
18+
FROM oci-archive:./out.ociarchive
19+
# Need to reference builder here to force ordering. But since we have to run
20+
# something anyway, we might as well cleanup after ourselves.
21+
RUN --mount=type=bind,from=builder,src=.,target=/var/tmp --mount=type=bind,rw=true,src=.,dst=/buildcontext,bind-propagation=shared rm /buildcontext/out.ociarchive

centos-stream-10-tier1.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
include:
2+
- centos-stream-10.yaml
3+
- tier-1/kernel.yaml
4+
- tier-1/manifest.yaml

centos-stream-10.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
releasever: stream10
2+
variables:
3+
distro: "stream10"
4+
5+
repos:
6+
- baseos
7+
- appstream

0 commit comments

Comments
 (0)