Skip to content

Commit

Permalink
Add support for podman in the demo script
Browse files Browse the repository at this point in the history
  • Loading branch information
amisevsk committed Feb 16, 2024
1 parent b147a44 commit 2f34d00
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion demos/sprint-24w6-demo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,15 @@ DEMO_PROMPT="${GREEN}➜ ${CYAN}\W ${COLOR_RESET}"
# text color
# DEMO_CMD_COLOR=$BLACK

if command -v docker; then
DOCKER=docker
elif command -v podman; then
DOCKER=podman
else
echo "You need docker or podman installed for this demo"
exit 1
fi

# hide the evidence
clear

Expand All @@ -44,7 +53,7 @@ pe "./jmm build ../examples/onnx -t localhost:5050/test-repo:test-tag"
pe "./jmm models"

# run a local registry
pe "docker run --name registry --rm -d -p 5050:5050 -e REGISTRY_HTTP_ADDR=:5050 registry"
pe "$DOCKER run --name registry --rm -d -p 5050:5050 -e REGISTRY_HTTP_ADDR=:5050 registry"

# Let's push the model to the local registry
pe "./jmm push localhost:5050/test-repo:test-tag --http"
Expand Down

0 comments on commit 2f34d00

Please sign in to comment.