Files
devpod/rust-pod

16 lines
310 B
Bash
Executable File

#!/bin/bash
set -e
IMAGE_NAME="rust-dev-pod"
if ! podman image exists $IMAGE_NAME; then
echo "Image $IMAGE_NAME not found. Building..."
podman build -t $IMAGE_NAME .
fi
echo "Dropping you into the Rust Dev Pod..."
podman run -it --rm \
-v "$PWD:$PWD" \
-w "$PWD" \
$IMAGE_NAME \
bash