did stuff

This commit is contained in:
robojerk 2025-08-26 10:33:28 -07:00
parent 3f2346b201
commit ee02c74250
10 changed files with 1511 additions and 0 deletions

36
Containerfile.debian Normal file
View file

@ -0,0 +1,36 @@
FROM debian:trixie-slim AS builder
RUN apt-get update && apt-get install -y git-core golang-go gpgme-dev libassuan-dev && mkdir -p /build/
ARG GOPROXY=https://proxy.golang.org,direct
RUN go env -w GOPROXY=$GOPROXY
COPY . /build
WORKDIR /build
# disable cgo as we don't really need it
RUN CGO_ENABLED=0 go build -tags "containers_image_openpgp exclude_graphdriver_btrfs exclude_graphdriver_devicemapper" ./cmd/image-builder
FROM debian:trixie-slim
# podman mount needs this
RUN mkdir -p /etc/containers/networks
# Install debian-forge instead of Fedora osbuild
RUN apt-get update && apt-get install -y \
python3-pip \
python3-jsonschema \
&& pip3 install debian-forge \
&& apt-get clean
COPY --from=builder /build/image-builder /usr/bin/
COPY entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
VOLUME /output
WORKDIR /output
# XXX: add "store" flag like bib
VOLUME /var/cache/image-builder/store
VOLUME /var/lib/containers/storage
LABEL description="This tools allows to build and deploy disk-images."
LABEL io.k8s.description="This tools allows to build and deploy disk-images."
LABEL io.k8s.display-name="Image Builder"
LABEL io.openshift.tags="base debian-trixie"
LABEL summary="A container to create disk-images."