-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
33 lines (22 loc) · 1.01 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
FROM ros:foxy-ros-base-focal
RUN apt-get update \
&& apt-get install --no-install-recommends -y \
python3-pip \
git \
ros-foxy-mavros-msgs \
&& rm -rf /var/lib/apt/lists/
RUN pip3 install Werkzeug==2.0.0 dash==2.0.0 dash-bootstrap-components==0.13.1 flask==2.1.3 gunicorn pandas
RUN mkdir -p ros_ws/src
RUN git clone https://github.com/mhl787156/starling_allocator.git /ros_ws/src/starling_allocator
COPY starling_ui_dashly /ros_ws/src/starling_ui_dashly/
COPY ros_entrypoint.sh /ros_entrypoint.sh
# Add custom ROS DDS configuration (force UDP always)
COPY fastrtps_profiles.xml /ros_ws/
ENV FASTRTPS_DEFAULT_PROFILES_FILE /ros_ws/fastrtps_profiles.xml
WORKDIR ros_ws
RUN . /opt/ros/foxy/setup.sh \
&& export CMAKE_PREFIX_PATH=$AMENT_PREFIX_PATH:$CMAKE_PREFIX_PATH \
&& colcon build --packages-select starling_ui_dashly starling_allocator_msgs --cmake-force-configure \
&& rm -r build
ENV PORT 3000
cmd ["ros2", "launch", "starling_ui_dashly", "dashboard_gunicorn.launch.xml"]