-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
40 lines (29 loc) · 879 Bytes
/
Dockerfile
File metadata and controls
40 lines (29 loc) · 879 Bytes
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
FROM ros:foxy-ros-base
# Install deps
RUN apt update && apt install -y \
python3-colcon-common-extensions \
python3-rosdep \
# python3-pip \
python3-tornado \
# python3-twisted \
# python3-autobahn \
python3-pil\
# python3-bson\
# ros-foxy-test-msgs \
# ros-foxy-pybind11-vendor \
&& rm -rf /var/lib/apt/lists/*
# RUN pip install pymongo
# Set workspace
WORKDIR /root/ros2_ws
COPY src/ src/
# COPY rosbags/ rosbags/
COPY start_rosboard.sh start_rosboard.sh
# Build your code
RUN . /opt/ros/foxy/setup.sh && \
rosdep update && rosdep install --from-paths src --ignore-src -r -y && \
colcon build --symlink-install
RUN echo "source /root/ros2_ws/install/setup.bash" >> /root/.bashrc && \
echo "export ROS_DOMAIN_ID=30" >> /root/.bashrc
# Default launch command
ENTRYPOINT ["/bin/bash"]
CMD ["./start_rosboard.sh"]