Refactor rechunking process to use Fedora boot container
Updated the build process to use a privileged Fedora boot container for rechunking.
This commit is contained in:
@@ -91,19 +91,25 @@ jobs:
|
|||||||
labels: ${{ steps.metadata.outputs.labels }}
|
labels: ${{ steps.metadata.outputs.labels }}
|
||||||
oci: true
|
oci: true
|
||||||
|
|
||||||
# Intelligentes Rechunking auf RPM-Paketbasis mit maximal 128 Layern
|
# Intelligentes Rechunking auf RPM-Paketbasis mit maximal 128 Layern via Container-Lauf
|
||||||
- name: Apply native bootc rechunking
|
- name: Apply native bootc rechunking
|
||||||
id: rechunk
|
id: rechunk
|
||||||
run: |
|
run: |
|
||||||
set -x
|
set -x
|
||||||
BASE_IMAGE="localhost/${{ env.IMAGE_NAME }}:${{ env.DEFAULT_TAG }}"
|
|
||||||
mkdir -p ./chunkah-out
|
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.
|
||||||
|
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 \
|
rpm-ostree compose build-chunked-oci \
|
||||||
--bootc \
|
--bootc \
|
||||||
--format-version=2 \
|
--format-version=2 \
|
||||||
--max-layers 128 \
|
--max-layers 128 \
|
||||||
--from=$BASE_IMAGE \
|
--from=localhost/${{ env.IMAGE_NAME }}:${{ env.DEFAULT_TAG }} \
|
||||||
--output=oci-archive:./chunkah-out/image.ociarchive
|
--output=oci-archive:./chunkah-out/image.ociarchive
|
||||||
|
|
||||||
- name: Login to GitHub Container Registry
|
- name: Login to GitHub Container Registry
|
||||||
|
|||||||
Reference in New Issue
Block a user