Skip to content

Commit

Permalink
Add in terminal way of entering container
Browse files Browse the repository at this point in the history
  • Loading branch information
audrow committed Jun 22, 2020
1 parent dbd60ec commit 74c98a5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docker/docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ case "$MODE" in
echo "Running in the background"
ROS_MASTER_URI=$ROS_MASTER_URI docker-compose run -d $SERVICE_NAME bash -c "source ~/ws/catkin_ws/devel/setup.bash && roslaunch abm_interaction qt_abm_interaction.launch"
;;
terminal | terminal_debug | t )
ROS_MASTER_URI=$ROS_MASTER_URI docker-compose run $SERVICE_NAME bash -c "source ~/ws/catkin_ws/devel/setup.bash && bash"
;;
stop | kill | down )
docker-compose down
;;
Expand All @@ -31,6 +34,6 @@ case "$MODE" in
ROS_MASTER_URI=$ROS_MASTER_URI docker-compose run $SERVICE_NAME bash -c "terminator -e \"echo 'Entering Docker Container...' && bash\""
;;
* )
echo "Please enter 'setup', 'run', 'stop', or 'debug'"
echo "Please enter 'setup', 'run', 'stop', 'terminal', or 'debug'"
;;
esac

0 comments on commit 74c98a5

Please sign in to comment.