From bfa43a8168e1e245a664b72079df0c80bb9d2b9b Mon Sep 17 00:00:00 2001 From: Sravan Balaji Date: Wed, 18 Mar 2020 15:00:06 -0400 Subject: [PATCH] Getting Started w/ Docker Containers - Add docker block post to README - Add docker-compose.yml with ros and gazebo services - Add Dockerfile for ros and gazebo using official images --- README.md | 6 ++++-- src/docker-compose.yml | 20 ++++++++++++++++++++ src/gazebo/Dockerfile | 6 ++++++ src/ros/Dockerfile | 6 ++++++ 4 files changed, 36 insertions(+), 2 deletions(-) create mode 100644 src/docker-compose.yml create mode 100644 src/gazebo/Dockerfile create mode 100644 src/ros/Dockerfile diff --git a/README.md b/README.md index 6c3c829..2cc22f5 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# RRRobot +# RRRobot! ## Team @@ -14,4 +14,6 @@ ## Introduction -Repository for UMICH EECS 467: Autonomous Robotics (W20) RRRobot! project. \ No newline at end of file +Repository for UMICH EECS 467: Autonomous Robotics (W20) RRRobot! project. + +To get started, you will need to install Docker on your system. Information on what Docker is, how to install it, and how to use it can be found in [Getting Started with Docker](https://sravanbalaji.com/Web%20Pages/blog_docker.html). diff --git a/src/docker-compose.yml b/src/docker-compose.yml new file mode 100644 index 0000000..0664896 --- /dev/null +++ b/src/docker-compose.yml @@ -0,0 +1,20 @@ +# Docker Compose + +# docker-compose.yml format version +version: '3' + +# Define services +services: + ros: + build: ./ros + volumes: + - ./ros:/app + + working_dir: /app + + gazebo: + build: ./gazebo + volumes: + - ./gazebo:/app + + working_dir: /app diff --git a/src/gazebo/Dockerfile b/src/gazebo/Dockerfile new file mode 100644 index 0000000..238d984 --- /dev/null +++ b/src/gazebo/Dockerfile @@ -0,0 +1,6 @@ +# Gazebo Dockerfile + +# Use official image for Gazebo 9.x +FROM gazebo:gzserver9 + +CMD ["/bin/bash"] diff --git a/src/ros/Dockerfile b/src/ros/Dockerfile new file mode 100644 index 0000000..19f1c6c --- /dev/null +++ b/src/ros/Dockerfile @@ -0,0 +1,6 @@ +# ROS Dockerfile + +# Use official image for ROS Melodic Morenia +FROM ros:melodic-ros-core + +CMD ["/bin/bash"]