-
Notifications
You must be signed in to change notification settings - Fork 124
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2b9c1b6
commit a97e5ce
Showing
1 changed file
with
3 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -349,7 +349,7 @@ carma__swarm() { | |
if [ "$1" = "deploy" ]; then | ||
|
||
echo "Checking Docker Swarm status..." | ||
if [ "$(docker info | grep Swarm | sed 's/Swarm: //g')" == "inactive" ]; then | ||
if [ "$(docker info | grep Swarm | sed 's/Swarm: //g')" == " inactive" ]; then | ||
echo "Initalizing Docker Swarm..." | ||
docker swarm init --advertise-addr 192.168.88.100 | ||
else | ||
|
@@ -385,7 +385,7 @@ carma__swarm() { | |
echo "Deploying CARMA to dual compute Swarm stack..." | ||
|
||
local TKN=$(docker swarm join-token -q worker) | ||
ssh [email protected] 'docker swarm join --token $TKN 192.168.88.100:2377' | ||
ssh [email protected] "docker swarm join --token $TKN 192.168.88.100:2377" | ||
|
||
docker run --rm -v carma-config-data:/opt/carma/vehicle/config --entrypoint sh busybox:latest -c \ | ||
'cat /opt/carma/vehicle/config/docker-compose-pc1.yml' | \ | ||
|
@@ -411,6 +411,7 @@ carma__swarm() { | |
docker run --rm --name carma-config-data -v carma-config-data:/opt/carma/vehicle/config -d usdotfhwastoldev/carma-config:$2 | ||
else | ||
echo "Could not find $2 in local images" | ||
fi | ||
|
||
elif [ "$1" = "down" ]; then | ||
echo "Shutting down swarm..." | ||
|