forked from frankaemika/franka_ros2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
73 lines (65 loc) · 2.06 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
FROM ros:humble
ARG DEBIAN_FRONTEND=noninteractive
ARG USER_UID=1001
ARG USER_GID=1001
ARG USERNAME=user
WORKDIR /tmp
RUN groupadd --gid $USER_GID $USERNAME \
&& useradd --uid $USER_UID --gid $USER_GID -m $USERNAME \
#
# [Optional] Add sudo support. Omit if you don't need to install software after connecting.
&& apt-get update \
&& apt-get install -y sudo \
&& echo $USERNAME ALL=\(root\) NOPASSWD:ALL > /etc/sudoers.d/$USERNAME \
&& chmod 0440 /etc/sudoers.d/$USERNAME
RUN apt-get update -y && apt-get install -y --allow-unauthenticated \
clang-14 \
clang-format-14 \
clang-tidy-14 \
libeigen3-dev \
libignition-gazebo6-dev \
libpoco-dev \
python3-pip \
ros-humble-ament-clang-format \
ros-humble-ament-cmake-clang-format \
ros-humble-ament-cmake-clang-tidy \
ros-humble-ament-flake8 \
ros-humble-angles \
ros-humble-control-msgs \
ros-humble-control-toolbox \
ros-humble-controller-interface \
ros-humble-controller-manager \
ros-humble-generate-parameter-library \
ros-humble-hardware-interface \
ros-humble-hardware-interface-testing \
ros-humble-launch-testing \
ros-humble-moveit \
ros-humble-pinocchio \
ros-humble-realtime-tools \
ros-humble-ros2-control \
ros-humble-ros2-control-test-assets \
ros-humble-xacro \
&& rm -rf /var/lib/apt/lists/*
RUN python3 -m pip install -U \
argcomplete \
flake8-blind-except \
flake8-builtins \
flake8-class-newline \
flake8-comprehensions \
flake8-deprecated \
flake8-docstrings \
flake8-import-order \
flake8-quotes
RUN mkdir ~/source_code
RUN cd ~/source_code && git clone https://github.com/frankaemika/libfranka.git \
&& cd libfranka \
&& git checkout 0.13.3 \
&& git submodule init \
&& git submodule update \
&& mkdir build && cd build \
&& cmake -DBUILD_EXAMPLES=OFF -DBUILD_TESTS=OFF .. \
&& make franka -j$(nproc) \
&& cpack -G DEB \
&& sudo dpkg -i libfranka*.deb
# set the default user to the newly created user
USER $USERNAME