-
Notifications
You must be signed in to change notification settings - Fork 407
/
Copy pathDockerfile
38 lines (31 loc) · 957 Bytes
/
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
38
# Use the official ROS Noetic base image
FROM osrf/ros:noetic-desktop-full
# Set the working directory
WORKDIR /project
SHELL ["/bin/bash", "-c"]
# Install additional dependencies if needed
RUN apt-get update --fix-missing\
&& apt-get -y --no-install-recommends install \
git \
gcc \
vim \
psmisc \
libxml2-dev \
libxslt-dev \
python3 \
python3-pip \
python-is-python3\
ros-noetic-amcl \
ros-noetic-base-local-planner \
ros-noetic-map-server \
ros-noetic-move-base \
ros-noetic-navfn
# python packages
RUN pip3 install setuptools && pip3 install catkin-tools && pip3 install conan==1.59.0
# bash
RUN echo "source /opt/ros/noetic/setup.bash" >> ~/.bashrc
# Copy the project into the container
COPY . /project
# catkin build
RUN cd ./3rd && source ./conan_install.sh && cd ../ && source /opt/ros/noetic/setup.bash && catkin_make
# RUN /bin/bash -c '. /opt/ros/noetic/setup.bash; catkin_make'