Skip to content

Commit

Permalink
New syntax for swarm
Browse files Browse the repository at this point in the history
  • Loading branch information
larsll committed Mar 24, 2024
1 parent d2bdadd commit fa942ce
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion scripts/evaluation/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ fi

# Check if we will use Docker Swarm or Docker Compose
if [[ "${DR_DOCKER_STYLE,,}" == "swarm" ]]; then
DISPLAY=$ROBO_DISPLAY docker stack deploy $COMPOSE_FILES $STACK_NAME
DISPLAY=$ROBO_DISPLAY docker stack deploy -d $COMPOSE_FILES $STACK_NAME
else
DISPLAY=$ROBO_DISPLAY docker compose $COMPOSE_FILES -p $STACK_NAME up -d
fi
Expand Down
2 changes: 1 addition & 1 deletion scripts/training/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ if [[ "${DR_DOCKER_STYLE,,}" == "swarm" ]]; then
exit 1
fi

DISPLAY=$ROBO_DISPLAY docker stack deploy $COMPOSE_FILES $STACK_NAME
DISPLAY=$ROBO_DISPLAY docker stack deploy -d $COMPOSE_FILES $STACK_NAME

else
DISPLAY=$ROBO_DISPLAY docker compose $COMPOSE_FILES -p $STACK_NAME up -d --scale robomaker=$DR_WORKERS
Expand Down
2 changes: 1 addition & 1 deletion scripts/viewer/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ COMPOSE_FILES=$DR_DIR/docker/docker-compose-webviewer.yml

if [[ "${DR_DOCKER_STYLE,,}" == "swarm" ]]; then
COMPOSE_FILES="$COMPOSE_FILES -c $DR_DIR/docker/docker-compose-webviewer-swarm.yml"
docker stack deploy -c $COMPOSE_FILES $STACK_NAME
docker stack deploy -d -c $COMPOSE_FILES $STACK_NAME
else
docker compose -f $COMPOSE_FILES -p $STACK_NAME up -d
fi
Expand Down

0 comments on commit fa942ce

Please sign in to comment.