Change container image and update rechunking command
Updated the container image used for rechunking and modified the installation command for rpm-ostree.
This commit is contained in:
@@ -92,25 +92,28 @@ jobs:
|
||||
oci: true
|
||||
|
||||
# Intelligentes Rechunking auf RPM-Paketbasis mit maximal 128 Layern via Container-Lauf
|
||||
# Intelligentes Rechunking auf RPM-Paketbasis mit maximal 128 Layern via Mini-Container
|
||||
- name: Apply native bootc rechunking
|
||||
id: rechunk
|
||||
run: |
|
||||
set -x
|
||||
mkdir -p ./chunkah-out
|
||||
|
||||
# Wir starten einen privilegierten Fedora-Bootc-Container, reichen den Podman-Storage
|
||||
# sowie unseren Workspace hinein und führen das Rechunking darin aus.
|
||||
# Wir nutzen fedora-minimal, installieren kurz rpm-ostree und zerteilen das Image
|
||||
podman run --rm --privileged \
|
||||
-v /var/lib/containers:/var/lib/containers:z \
|
||||
-v .:/workspace:z \
|
||||
-w /workspace \
|
||||
quay.io/fedora/fedora-bootc:stable \
|
||||
rpm-ostree compose build-chunked-oci \
|
||||
--bootc \
|
||||
--format-version=2 \
|
||||
--max-layers 128 \
|
||||
--from=localhost/${{ env.IMAGE_NAME }}:${{ env.DEFAULT_TAG }} \
|
||||
--output=oci-archive:./chunkah-out/image.ociarchive
|
||||
quay.io/fedora/fedora-minimal:latest \
|
||||
bash -c "
|
||||
dnf install -y rpm-ostree jq && \
|
||||
rpm-ostree compose build-chunked-oci \
|
||||
--bootc \
|
||||
--format-version=2 \
|
||||
--max-layers 128 \
|
||||
--from=localhost/${{ env.IMAGE_NAME }}:${{ env.DEFAULT_TAG }} \
|
||||
--output=oci-archive:./chunkah-out/image.ociarchive
|
||||
"
|
||||
|
||||
- name: Login to GitHub Container Registry
|
||||
uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v3
|
||||
|
||||
Reference in New Issue
Block a user