forked from open-edge-platform/edge-ai-suites
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.exec
More file actions
27 lines (20 loc) · 1.1 KB
/
Dockerfile.exec
File metadata and controls
27 lines (20 loc) · 1.1 KB
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
# syntax = edrevo/dockerfile-plus
INCLUDE+ .devcontainer/Dockerfile
FROM rvc-dev AS rvc-exec
RUN apt-get update && apt-get install -y --no-install-recommends \
ros-${ROS_DISTRO}-ur-robot-driver \
ros-${ROS_DISTRO}-ur-calibration \
$(if [ "${ROS_DISTRO}" = "jazzy" ]; then echo "ros-${ROS_DISTRO}-hardware-interface"; else echo "ros-${ROS_DISTRO}-ur-bringup"; fi) \
&& rm -rf /var/lib/apt/lists/*
RUN echo "$USERNAME soft rtprio 98" >> /etc/security/limits.conf \
&& echo "$USERNAME soft priority 99" >> /etc/security/limits.conf \
&& echo "$USERNAME hard priority 99" >> /etc/security/limits.conf \
&& echo "$USERNAME soft memlock 102400" >> /etc/security/limits.conf \
&& echo "$USERNAME hard memlock 102400" >> /etc/security/limits.conf \
&& echo "$USERNAME - memlock 51200" >> /etc/security/limits.conf \
&& echo "$USERNAME - rtprio 99" >> /etc/security/limits.conf
COPY --chown=$USERNAME src /rvc/src
USER $USERNAME
RUN cd /rvc \
&& . /opt/ros/${ROS_DISTRO}/setup.sh \
&& colcon build --symlink-install --cmake-args -DBUILD_TESTING=OFF -DCMAKE_BUILD_TYPE=Release