-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.test.old
executable file
·33 lines (24 loc) · 1.04 KB
/
Dockerfile.test.old
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
ARG ROS_DISTRO=humble
FROM ros:${ROS_DISTRO} as base
ENV ROS_DISTRO=${ROS_DISTRO}
SHELL ["/bin/bash", "-c"]
# Create Colcon workspace and copy in all of the packages required for the current node
RUN mkdir -p /sailbot_ws/src
WORKDIR /sailbot_ws/src
RUN mkdir /sailbot_ws/src/sailbot_msgs
COPY src/sailbot_msgs /sailbot_ws/src/sailbot_msgs
# install python dependencies
RUN sudo apt-get update \
&& sudo apt install python3-pip -y
# this is necessary for open cv (TODO: Maybe find a way to only install these libraries if we are installing opencv in the image)
RUN apt-get update && apt-get install ffmpeg libsm6 libxext6 -y
RUN pip3 install setuptools==58.2.0
# Build the base Colcon workspace, installing dependencies first.
WORKDIR /sailbot_ws
RUN source /opt/ros/${ROS_DISTRO}/setup.bash \
&& apt-get update -y \
&& rosdep install --from-paths src --ignore-src --rosdistro ${ROS_DISTRO} -y \
&& colcon build --symlink-install
# Start the ROS node through ros2 run
# CMD source /opt/ros/${ROS_DISTRO}/setup.bash \
# && source install/setup.bash