ampere_research/trilinos/build.sh
2024-12-02 23:32:33 -05:00

15 lines
370 B
Bash
Executable File

#! /bin/bash
image_name="$1"
if [[ -z "$1" ]]; then
echo "Missing image name argument!"
exit 1
fi
podman build . -t "$image_name":latest -f "$image_name".Containerfile && \
podman save localhost/"$image_name":latest -o "$image_name".img && \
rm -fv "$image_name".sif && \
apptainer pull "$image_name".sif docker-archive:"$image_name".img
rm -v "$image_name".img