-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
42 lines (28 loc) · 1.06 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
39
40
41
42
FROM ros:noetic-perception-focal
LABEL maintainer "Anton Tetov <[email protected]>"
SHELL ["/bin/bash","-c"]
# Create local catkin workspace
ENV CATKIN_WS=/root/catkin_ws
RUN mkdir -p $CATKIN_WS/src
WORKDIR $CATKIN_WS
# copy repo to src
COPY . ./src/biodigitalmatter_ros
RUN apt-get update
RUN apt-get upgrade -y
RUN rosdep update
RUN apt-get install -y \
git \
iputils-ping \
net-tools \
python3-catkin-tools \
python3-pip \
python3-vcstool
RUN vcs import src < src/biodigitalmatter_ros/dependencies.repos
RUN vcs import src < src/abb_robot_driver/pkgs.repos
RUN rosdep install -y --from-paths . --ignore-src --rosdistro ${ROS_DISTRO}
RUN source /opt/ros/${ROS_DISTRO}/setup.bash && catkin build
COPY --chmod=755 ros_catkin_entrypoint.sh /usr/local/bin
# Always source ros_catkin_entrypoint.sh when launching bash (e.g. when attaching to container)
RUN echo "source /usr/local/bin/ros_catkin_entrypoint.sh" >> /root/.bashrc
ENTRYPOINT ["/usr/local/bin/ros_catkin_entrypoint.sh"]
CMD ["bash"]