-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
43 lines (33 loc) · 1.13 KB
/
Dockerfile
File metadata and controls
43 lines (33 loc) · 1.13 KB
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
43
ARG ROS_DISTRO=jazzy
FROM ros:${ROS_DISTRO}
RUN apt-get update -qq \
&& apt-get install -y \
python3-pip \
ros-${ROS_DISTRO}-std-msgs \
ros-${ROS_DISTRO}-geometry-msgs \
ros-${ROS_DISTRO}-diagnostic-msgs \
ros-${ROS_DISTRO}-ament-cmake \
ros-${ROS_DISTRO}-rmw-zenoh-cpp \
python3-flake8 \
python3-pytest-cov \
&& rm -rf /var/lib/apt/lists/*
# PEP 668: https://docs.ros.org/en/independent/api/rosdep/html/pip_and_pep_668.html
ENV PIP_BREAK_SYSTEM_PACKAGES=1
EXPOSE 7000
ENV APP=/app/helloric_ui_com
COPY ./requirements.txt /tmp/requirements.txt
# TODO: use a venv or install debian packages instead
RUN pip3 install -r /tmp/requirements.txt --break-system-packages
WORKDIR ${APP}
COPY ./ric-messages ${APP}/ric-messages
RUN . /opt/ros/${ROS_DISTRO}/setup.sh && \
colcon build
COPY entrypoint.bash /entrypoint.bash
RUN chmod +x /entrypoint.bash
COPY README.md ${APP}/README.md
COPY ./helloric_ui_com ${APP}/helloric_ui_com
RUN . /opt/ros/${ROS_DISTRO}/setup.sh && \
colcon build
ENV RMW_IMPLEMENTATION=rmw_zenoh_cpp
ENTRYPOINT ["/entrypoint.bash"]
CMD ["ros2", "run", "helloric_ui_com", "helloric_ui_com"]