ampere_research/pytorch/build.sh

15 lines
370 B
Bash
Raw Normal View History

2024-11-28 00:04:57 -05:00
#! /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