forked from lionsbot-official/fleet_adapter_lionsbot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathr3_Dockerfile
37 lines (31 loc) · 1.08 KB
/
r3_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
FROM ghcr.io/open-rmf/rmf/rmf_demos:22_09
RUN apt-get update \
&& apt-get remove python3-starlette -y \
&& apt-get install -y \
cmake \
curl \
git \
python3-colcon-common-extensions \
python3-vcstool \
qtbase5-dev qtchooser qt5-qmake qtbase5-dev-tools \
wget \
python3-pip \
&& pip3 install flask-socketio fastapi uvicorn nudged websocket-client pyjwt \
&& rm -rf /var/lib/apt/lists/*
# setup keys
WORKDIR /fleet_adapter_r3_ws
RUN mkdir src
# This replaces: wget https://raw.githubusercontent.com/open-rmf/rmf/main/rmf.repos
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update \
&& apt-get upgrade -y \
&& rosdep update --rosdistro $ROS_DISTRO \
&& rosdep install --from-paths src --ignore-src --rosdistro $ROS_DISTRO -yr \
&& rm -rf /var/lib/apt/lists/*
# colcon compilation
COPY fleet_adapter_r3 src/fleet_adapter_r3
RUN . /opt/ros/$ROS_DISTRO/setup.sh \
&& colcon build --cmake-args -DCMAKE_BUILD_TYPE=Release
# cleanup
RUN sed -i '$isource "/fleet_adapter_r3_ws/install/setup.bash"' /ros_entrypoint.sh
ENTRYPOINT ["/ros_entrypoint.sh"]