vet

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 692d29eeae4d0ea704a9f33e4646622721be25d7
parent 7a235b4687a59eeccdd05b4ea4eeb989cdab295e
Author: andrewlaack-collab <andrew.laack@imbue.com>
Date:   Fri, 20 Feb 2026 22:49:07 +0000

Added check for podman (default), and updated run command to use --rm to for ephemerality (#119)

Co-authored-by: Andrew Laack <andrew@laack.co>
Diffstat:
Mdev/build.sh | 13++++++++++++-
Mdev/run.sh | 11++++++++++-
2 files changed, 22 insertions(+), 2 deletions(-)

diff --git a/dev/build.sh b/dev/build.sh @@ -8,7 +8,18 @@ if [ "$1" = "claude" ]; then IMAGE_NAME="vet-claude" fi -docker build \ +if command -v podman &> /dev/null; then + RUNTIME="podman" +elif command -v docker &> /dev/null; then + RUNTIME="docker" +else + echo "No containerization program detected. Please install podman (preferred) or docker." + exit 1 +fi + +$RUNTIME build \ --build-arg INSTALL_CLAUDE=$INSTALL_CLAUDE \ -t $IMAGE_NAME \ dev/. + +echo "Built '$IMAGE_NAME' image using $RUNTIME." diff --git a/dev/run.sh b/dev/run.sh @@ -2,13 +2,22 @@ IMAGE_NAME="vet" +if command -v podman &> /dev/null; then + RUNTIME="podman" +elif command -v docker &> /dev/null; then + RUNTIME="docker" +else + echo "No containerization program detected. Please install podman (preferred) or docker." + exit 1 +fi + if [ "$1" = "claude" ]; then IMAGE_NAME="vet-claude" fi [ -f .env ] || { echo '.env file not found, please create one before proceeding'; exit 1; } -docker run -it \ +$RUNTIME run --rm -it \ --mount type=bind,source="$(pwd)",target=/app \ --env-file .env \ "$IMAGE_NAME" bash