-
Notifications
You must be signed in to change notification settings - Fork 158
/
.Dockerfile
38 lines (27 loc) · 1.21 KB
/
.Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# ROSPlan docker image
FROM ros:melodic
SHELL ["/bin/bash", "-c"]
WORKDIR /root/ws
# install dependencies
RUN apt update -qq && apt install python-catkin-tools git vim bash-completion -y -qq
# Create WS
RUN source /opt/ros/$ROS_DISTRO/setup.bash &&\
mkdir src &&\
catkin init &&\
catkin build --summarize --no-status
# Copy source files.
COPY . ./src/rosplan
# Get ROSPlan from repo
#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/rosplan --ignore-src -q -r -y
# Build workspace
RUN catkin build --summarize --no-status
# Prepare workspace for runtime. Set the prompt to be colored
RUN echo -e "source /opt/ros/$ROS_DISTRO/setup.bash\nsource devel/setup.bash" >> ~/.bashrc &&\
sed -i s/^#force_color_prompt/force_color_prompt/g ~/.bashrc