Skip to content

Commit

Permalink
added fix to edge case for unrecognized network
Browse files Browse the repository at this point in the history
  • Loading branch information
skiunke committed Nov 26, 2023
1 parent e0dd76f commit 8705858
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions build_and_run.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
#!/bin/sh

NETWORK_NAME="rovernet"

if docker network inspect "$NETWORK_NAME" >/dev/null 2>&1; then
echo "Network '$NETWORK_NAME' already exists."
else
docker network create "$NETWORK_NAME"
echo "Network '$NETWORK_NAME' created."
fi

docker compose down

docker build -t ecal_image .
Expand Down

0 comments on commit 8705858

Please sign in to comment.