From c507d63ff28a9a4fa6b5b14fe167f2abb3272264 Mon Sep 17 00:00:00 2001 From: Morgan McMillian Date: Sun, 27 Oct 2024 07:13:54 -0700 Subject: [PATCH] add container build to test rust stuff --- fedora-atomic/Containerfile.rust-distrobox | 14 ++++++++++++++ fedora-atomic/build-distrobox.sh | 6 +++++- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 fedora-atomic/Containerfile.rust-distrobox diff --git a/fedora-atomic/Containerfile.rust-distrobox b/fedora-atomic/Containerfile.rust-distrobox new file mode 100644 index 0000000..aa2d325 --- /dev/null +++ b/fedora-atomic/Containerfile.rust-distrobox @@ -0,0 +1,14 @@ +FROM registry.fedoraproject.org/fedora-toolbox:41 + +RUN sudo dnf5 group install -y \ + development-tools \ + c-development + +RUN sudo dnf5 install -y \ + python3-build \ + python3-pip \ + flatpak-builder \ + openssl \ + scdoc \ + ninja-build \ + clang-tools-extra diff --git a/fedora-atomic/build-distrobox.sh b/fedora-atomic/build-distrobox.sh index 00c6669..a91b091 100755 --- a/fedora-atomic/build-distrobox.sh +++ b/fedora-atomic/build-distrobox.sh @@ -4,7 +4,7 @@ readonly CMD=$(basename "${0}") function usage() { echo - echo "usage: ${CMD} [fedora|debian]" + echo "usage: ${CMD} [fedora|debian|rust]" echo exit 1 } @@ -23,6 +23,10 @@ case "${1}" in NAME="debian-bookworm" IMAGE="debian-thrrgilag:bookworm" BUILDFILE="Containerfile.debian-distrobox";; + rust) + NAME="rusty" + IMAGE="rusty-fedora:41" + BUILDFILE="Containerfile.rust-distrobox";; *) usage exit 0;;