-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
59 lines (49 loc) · 1.59 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
FROM ros:noetic
ENV ROS_DISTRO noetic
ENV PATH="$PATH:/usr/bin/python3"
RUN apt -q -qq update && \
DEBIAN_FRONTEND=noninteractive apt install -y \
software-properties-common \
wget \
apt-transport-https
RUN apt -q -qq update && \
DEBIAN_FRONTEND=noninteractive apt install -y --allow-unauthenticated \
#python-rosinstall \
#python-catkin-tools \
ca-certificates \
git \
build-essential \
cmake \
ninja-build \
python3-catkin-tools \
software-properties-common \
ros-$ROS_DISTRO-realsense2-camera \
ros-$ROS_DISTRO-image-transport* \
ros-$ROS_DISTRO-rgbd-launch \
python3-rosinstall \
python3-catkin-tools \
python3-pip \
ros-$ROS_DISTRO-joy \
ros-$ROS_DISTRO-teleop-twist-joy \
ros-${ROS_DISTRO}-jsk-tools \
ros-${ROS_DISTRO}-rgbd-launch \
ros-${ROS_DISTRO}-image-transport-plugins \
ros-${ROS_DISTRO}-image-transport \
software-properties-common \
ros-${ROS_DISTRO}-rosserial-python \
wget
RUN sudo sh \
-c 'echo "deb http://packages.ros.org/ros/ubuntu `lsb_release -sc` main" \
> /etc/apt/sources.list.d/ros-latest.list'
RUN wget http://packages.ros.org/ros.key -O - | sudo apt-key add -
RUN apt-get update
RUN pip3 install -U catkin_tools
RUN rosdep update
RUN mkdir -p /hardware_ws/src
COPY . ./hardware_ws/src/
WORKDIR /hardware_ws
RUN /bin/bash -c '. /opt/ros/${ROS_DISTRO}/setup.bash; catkin build' && \
echo "source /opt/ros/${ROS_DISTRO}/setup.bash" >> /root/.bashrc && \
echo "source /hardware_ws/devel/setup.bash" >> /root/.bashrc
ENTRYPOINT ["/ros_entrypoint.sh"]
CMD ["bash"]