-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
78 lines (60 loc) · 2.11 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
74
75
# Use an official Ubuntu 20.04 LTS as a parent image
FROM osrf/ros:noetic-desktop-full
# Set noninteractive to avoid prompts during the build
ARG DEBIAN_FRONTEND=noninteractive
# Update apt package list and install general packages
RUN apt-get update && \
apt-get install -y --fix-missing \
curl\
python3-pip\
build-essential\
cmake\
libpoco-dev\
libeigen3-dev\
python3-rosdep\
mesa-utils\
nano\
python3-catkin-tools\
ros-noetic-gazebo-ros-control\
ros-noetic-rospy-message-converter\
ros-noetic-effort-controllers\
ros-noetic-joint-state-controller\
ros-noetic-moveit\
ros-noetic-moveit-commander\
ros-noetic-moveit-visual-tools
# Install python packages
RUN pip install future\
PyYaml\
urdf-parser-py\
panda_robot\
numpy==1.21
# Install Rust
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
ENV PATH="/root/.cargo/bin:${PATH}"
# Set up realtime configs (for realtime kernel)
RUN addgroup realtime
RUN usermod -a -G realtime $(whoami)
RUN echo "@realtime soft rtprio 99" | tee -a /etc/security/limits.conf
RUN echo "@realtime soft priority 99" | tee -a /etc/security/limits.conf
RUN echo "@realtime soft memlock 102400" | tee -a /etc/security/limits.conf
RUN echo "@realtime hard rtprio 99" | tee -a /etc/security/limits.conf
RUN echo "@realtime hard priority 99" | tee -a /etc/security/limits.conf
RUN echo "@realtime hard memlock 102400" | tee -a /etc/security/limits.conf
# Install rosdep updates
COPY . /workspace
WORKDIR /workspace/
#RUN rosdep init
RUN rosdep update
RUN rosdep install --from-paths src --ignore-src --rosdistro noetic -y --skip-keys libfranka
# Set libfranka library
# RUN mkdir -p /workspace/libfranka/build
# WORKDIR /workspace/libfranka/build
# RUN cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTS=OFF ..
# RUN cmake --build .
# RUN cpack -G DEB
RUN dpkg -i /workspace/libfranka/build/libfranka-0.9.2-x86_64.deb
#RUN dpkg -i libfranka-0.9.2-x86_64.deb
WORKDIR /workspace/
# Set the default command to execute
# When creating a container, this will simulate `docker run -it`
CMD ["bash"]