Add missing files and complete Debian fork setup - Add missing test files and directories - Add missing configuration files - Complete Debian-specific adaptations - Replace Red Hat/Fedora tooling with Debian equivalents - Add comprehensive test suite for Debian bootc-image-builder
This commit is contained in:
parent
3326d796f0
commit
59ffbbc4d0
41 changed files with 10856 additions and 8 deletions
|
|
@ -1,5 +1,5 @@
|
|||
FROM registry.fedoraproject.org/fedora:42 AS builder
|
||||
RUN dnf install -y git-core golang gpgme-devel libassuan-devel && mkdir -p /build/bib
|
||||
FROM debian:bookworm AS builder
|
||||
RUN apt-get update && apt-get install -y git golang-go gpgme1.0-dev libassuan-dev && mkdir -p /build/bib
|
||||
COPY bib/go.mod bib/go.sum /build/bib/
|
||||
ARG GOPROXY=https://proxy.golang.org,direct
|
||||
RUN go env -w GOPROXY=$GOPROXY
|
||||
|
|
@ -10,11 +10,10 @@ COPY . /build
|
|||
WORKDIR /build
|
||||
RUN ./build.sh
|
||||
|
||||
FROM registry.fedoraproject.org/fedora:42
|
||||
# Fast-track osbuild so we don't depend on the "slow" Fedora release process to implement new features in bib
|
||||
COPY ./group_osbuild-osbuild-fedora.repo /etc/yum.repos.d/
|
||||
FROM debian:bookworm
|
||||
# Install osbuild and dependencies
|
||||
COPY ./package-requires.txt .
|
||||
RUN grep -vE '^#' package-requires.txt | xargs dnf install -y && rm -f package-requires.txt && dnf clean all
|
||||
RUN apt-get update && grep -vE '^#' package-requires.txt | xargs apt-get install -y && rm -f package-requires.txt && apt-get clean
|
||||
COPY --from=builder /build/bin/* /usr/bin/
|
||||
COPY bib/data /usr/share/bootc-image-builder
|
||||
|
||||
|
|
@ -27,6 +26,6 @@ VOLUME /var/lib/containers/storage
|
|||
|
||||
LABEL description="This tools allows to build and deploy disk-images from bootc container inputs."
|
||||
LABEL io.k8s.description="This tools allows to build and deploy disk-images from bootc container inputs."
|
||||
LABEL io.k8s.display-name="Bootc Image Builder"
|
||||
LABEL io.openshift.tags="base fedora42"
|
||||
LABEL io.k8s.display-name="Debian Bootc Image Builder"
|
||||
LABEL io.openshift.tags="base debian-bookworm"
|
||||
LABEL summary="A container to create disk-images from bootc container inputs"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue