forked from ZJU-FAST-Lab/Primitive-Planner
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
23 lines (17 loc) · 745 Bytes
/
Copy pathDockerfile
File metadata and controls
23 lines (17 loc) · 745 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM osrf/ros:noetic-desktop-full
# install dependencies
RUN apt update && apt install -y python3-pip python3-tk vim ros-noetic-teleop-twist-keyboard
RUN pip3 install numpy --upgrade
RUN pip3 install toppra catkin_pkg PyYAML empy matplotlib pyrfc3339
ARG USER_ID
ARG GROUP_ID
# create a user matching the host
RUN groupadd --gid ${GROUP_ID} hostuser \
&& useradd --uid ${USER_ID} --gid ${GROUP_ID} --create-home --shell /bin/bash hostuser
# Add line to bashrc
RUN echo "\n if [ -f ~/primitive-planner/devel/setup.bash ]; then\n source ~/primitive-planner/devel/setup.bash\n fi" >> /home/hostuser/.bashrc \
&& chown hostuser:hostuser /home/hostuser/.bashrc
ENV HOME=/home/hostuser
WORKDIR /home/hostuser
USER hostuser
CMD ["bash"]