Skip to content

Commit

Permalink
Make docker.sh have default argument
Browse files Browse the repository at this point in the history
  • Loading branch information
audrow committed May 6, 2020
1 parent e67ef36 commit 5757a3f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion docker/docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,16 @@
FILE_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd $FILE_DIR

if [ -z ${1+x} ];
then
MODE="debug";
else
MODE=$1;
fi

SERVICE_NAME="abm_interaction"
ROS_MASTER_URI=$ROS_MASTER_URI docker-compose up --build
case "$1" in
case "$MODE" in
setup )
echo "Calling setup script"
ROS_MASTER_URI=$ROS_MASTER_URI docker-compose run $SERVICE_NAME bash -c "source ~/ws/catkin_ws/devel/setup.bash && roslaunch abm_interaction setup_abm_interaction.launch"
Expand Down

0 comments on commit 5757a3f

Please sign in to comment.