add container build to test rust stuff

This commit is contained in:
Morgan McMillian 2024-10-27 07:13:54 -07:00
parent 75bbe4a9d8
commit c507d63ff2
2 changed files with 19 additions and 1 deletions

View file

@ -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

View file

@ -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;;