Skip to content

Commit

Permalink
Added docker for demos tag
Browse files Browse the repository at this point in the history
  • Loading branch information
gerardcanal committed May 27, 2020
1 parent 31b6166 commit 6c5ec4e
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,18 @@ RUN source /opt/ros/$ROS_DISTRO/setup.bash &&\
# Copy source files.
COPY . ./src/rosplan

# ROSPlan demos are cloned from the related repository
RUN git clone --depth 1 https://github.com/clearpathrobotics/occupancy_grid_utils.git src/occupancy_grid_utils &&\
git clone --depth 1 https://github.com/KCL-Planning/rosplan_demos.git src/rosplan_demos

# Get ROSPlan from repo
#RUN git clone --recurse-submodules --shallow-submodules --depth 1 https://github.com/KCL-Planning/ROSPlan.git src/rosplan &&\
# git clone --depth 1 https://github.com/clearpathrobotics/occupancy_grid_utils.git src/occupancy_grid_utils &&\
# git clone --depth 1 https://github.com/KCL-Planning/rosplan_demos.git src/rosplan_demos
#RUN git clone --recurse-submodules --shallow-submodules --depth 1 https://github.com/KCL-Planning/ROSPlan.git src/rosplan

# Get related repos. ROSPlan demos are moved to kclplanning/rosplan:demos
#RUN git clone --depth 1 https://github.com/clearpathrobotics/occupancy_grid_utils.git src/occupancy_grid_utils &&\
# git clone --depth 1 https://github.com/KCL-Planning/rosplan_demos.git src/rosplan_demos


# Further dependencies
RUN source devel/setup.bash &&\
rosdep update &&\
rosdep install --from-paths src/ --ignore-src -q -r -y
rosdep install --from-paths src/rosplan --ignore-src -q -r -y

# Build workspace
RUN catkin build --summarize --no-status
Expand Down
20 changes: 20 additions & 0 deletions .Dockerfile_demos
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# ROSPlan_demos docker image
FROM kclplanning/rosplan

SHELL ["/bin/bash", "-c"]
WORKDIR /root/ws

# Clone ROSPlan demos
RUN git clone --depth 1 https://github.com/KCL-Planning/rosplan_demos.git src/rosplan_demos

# Get dependencies
RUN git clone --depth 1 https://github.com/clearpathrobotics/occupancy_grid_utils.git src/occupancy_grid_utils


# Further dependencies
RUN source devel/setup.bash &&\
rosdep update &&\
rosdep install --from-paths src/occupancy_grid_utils src/rosplan_demos/rosplan_demos_interfaces --ignore-src -q -r -y

# Build workspace
RUN catkin build --summarize --no-status

0 comments on commit 6c5ec4e

Please sign in to comment.