From 30ec9260ea29655559bf56b9ccc16c36df4cd7ed Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Wed, 7 Feb 2024 11:17:41 -0600 Subject: [PATCH] Initial commit --- Containerfile | 33 +++++++++++++++++++++++++++++++++ Jenkinsfile | 1 + 2 files changed, 34 insertions(+) create mode 100644 Containerfile create mode 100644 Jenkinsfile diff --git a/Containerfile b/Containerfile new file mode 100644 index 0000000..7c78093 --- /dev/null +++ b/Containerfile @@ -0,0 +1,33 @@ +FROM registry.fedoraproject.org/fedora-minimal:39 AS build + +RUN --mount=type=cache,target=/var/cache \ + microdnf install -y \ + --setopt install_weak_deps=0 \ + autoconf \ + gcc \ + libconfuse-devel \ + make \ + tar \ + xz \ + && : + +RUN curl -fsSL https://github.com/pengutronix/genimage/releases/download/v17/genimage-17.tar.xz \ + | tar -xJ \ + && cd genimage-17 \ + && ./configure \ + && make \ + && make install \ + && : + + +FROM registry.fedoraproject.org/fedora-minimal:39 + +RUN --mount=type=cache,target=/var/cache \ + microdnf install -y \ + dosfstools \ + squashfs-tools \ + tar \ + zstd \ + && : + +COPY --from=build /usr/local/bin/genimage /usr/local/bin/genimage diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..bd2312d --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1 @@ +buildContainerImage2(name: 'build/rootfs', archlist: ['amd64', 'arm64'])