Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion nasdaq/comparison.compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ services:
timeout: 5s
retries: 10
grafana:
image: grafana/grafana:12.0.0
image: grafana/grafana:13.1.0-25410206825
restart: unless-stopped
environment:
GRAFANA_USER: ${GRAFANA_USER}
Expand Down
2 changes: 1 addition & 1 deletion nasdaq/compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ services:
timeout: 1s
retries: 10
grafana:
image: grafana/grafana:12.0.0
image: grafana/grafana:13.1.0-25410206825
container_name: grafana
restart: unless-stopped
environment:
Expand Down
14 changes: 9 additions & 5 deletions nasdaq/demo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ set -Eeuo pipefail

usage() {
cat <<'EOF'
Usage: ./demo.sh [--comparison|-c] <start|stop|clean>
Usage: ./demo.sh [--comparison|-c] <start|stop|clean|pull>

Normal mode starts CedarDB, Nasdaq client, Grafana and the AI chat for the demo.
Comparison mode adds PostgreSQL to the deployment to compare the performance of the two DBs.
Expand All @@ -12,6 +12,7 @@ Commands:
start Start the demo stack
stop Stop the demo stack
clean Stop the demo stack and remove volumes
pull Pull the latest images for the demo stack

Options:
-c, --comparison Use comparison.compose.yml
Expand All @@ -31,9 +32,9 @@ while (($# > 0)); do
usage
exit 0
;;
start|stop|clean)
start|stop|clean|pull)
if [[ -n "$command" ]]; then
echo "Only one command is allowed: start, stop, or clean." >&2
echo "Only one command is allowed: start, stop, clean, or pull." >&2
usage >&2
exit 1
fi
Expand All @@ -49,7 +50,7 @@ while (($# > 0)); do
done

if [[ -z "$command" ]]; then
echo "Missing command: start, stop, or clean." >&2
echo "Missing command: start, stop, clean, or pull." >&2
usage >&2
exit 1
fi
Expand All @@ -75,12 +76,15 @@ case "$command" in
export GRAFANA_USER="postgres"
export GRAFANA_USER_PWD="${ADMIN_PWD}"
fi
docker compose "${compose_args[@]}" up -d --build --force-recreate
docker compose "${compose_args[@]}" up -d --build --force-recreate --remove-orphans
;;
stop)
docker compose "${compose_args[@]}" down
;;
clean)
docker compose "${compose_args[@]}" down -v
;;
pull)
docker compose "${compose_args[@]}" pull --ignore-buildable
;;
esac
Loading