Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for podman in the demo script #22

Merged
merged 1 commit into from
Feb 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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