commit 7c192375c378f5073917a9d5d0b6128bbbbdffa2 Author: Dustin C. Hatch Date: Wed Jan 17 14:01:19 2024 -0600 Initial commit diff --git a/Containerfile b/Containerfile new file mode 100644 index 0000000..3d75887 --- /dev/null +++ b/Containerfile @@ -0,0 +1,47 @@ +FROM registry.fedoraproject.org/fedora-minimal:39 AS build + +ARG CUE_VERSION=0.7.0 + +RUN --mount=type=cache,target=/var/cache \ + microdnf install -y \ + --setopt install_weak_deps=0 \ + gzip \ + tar \ + && ARCH=$(uname -m) \ + && case "${ARCH}" in \ + x86_64) ARCH=amd64 ;; \ + aarch64) ARCH=arm64 ;; \ + esac \ + && url="https://github.com/cue-lang/cue/releases/download/v${CUE_VERSION}/cue_v${CUE_VERSION}_linux_${ARCH}.tar.gz" \ + && curl -fsSL "${url}" \ + | tar -C /usr/local/bin -xz cue \ + && : + + +FROM git.pyrocufflink.net/containerimages/tmpl + +RUN --mount=type=cache,target=/var/cache \ + --mount=type=bind,from=build,source=/,target=/build \ + microdnf install -y \ + --setopt install_weak_deps=0 \ + age \ + git-core \ + && ln -snf /host/etc/passwd /etc/passwd \ + && ln -snf /host/etc/group /etc/group \ + && cp -a /build/usr/local/bin/cue /usr/local/bin/ \ + && for cmd in \ + systemctl \ + systemd-sysusers \ + ; do ln -s nsenter.sh /usr/local/bin/${cmd}; done \ + && : + +COPY nsenter.sh /usr/local/bin/nsenter.sh + +COPY config.sh / + +ENTRYPOINT [] + +CMD ["/config.sh"] + +LABEL license= \ + vendor='Dustin C. Hatch' \ diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..d8b26c5 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,6 @@ +@Library('containerimages')_ + +buildContainerImage2( + project: 'infra', + archlist: ['amd64', 'arm64'], +)