-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
62 lines (49 loc) · 1.71 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
ARG ARCH=osrf
ARG ROS_DISTRO=melodic
FROM ${ARCH}/ros:${ROS_DISTRO}-desktop-full
ARG USER_ID
ARG GROUP_ID
RUN addgroup --gid $GROUP_ID user
RUN useradd -ou 0 -g $GROUP_ID user
# install xauth for gui applications
RUN apt-get update && apt-get install -q -y --no-install-recommends \
xauth \
&& rm -rf /var/lib/apt/lists/*
#---- Add your modifications below to add the functionnality you need ----
# install packages
RUN apt-get update && apt-get install -q -y --no-install-recommends \
build-essential \
cmake \
git \
net-tools \
nano \
terminator \
&& rm -rf /var/lib/apt/lists/*
# install python packages
RUN apt-get update && apt-get install -q -y --no-install-recommends \
python3-pip \
&& rm -rf /var/lib/apt/lists/*
# install ROS useful tools
RUN apt-get update && apt-get install -q -y --no-install-recommends \
ros-${ROS_DISTRO}-gmapping \
ros-${ROS_DISTRO}-map-server \
ros-${ROS_DISTRO}-navigation \
ros-${ROS_DISTRO}-robot-state-publisher \
ros-${ROS_DISTRO}-move-base \
ros-${ROS_DISTRO}-amcl \
ros-${ROS_DISTRO}-depthimage-to-laserscan \
ros-${ROS_DISTRO}-joy \
ros-${ROS_DISTRO}-teleop-twist-keyboard \
ros-${ROS_DISTRO}-openni-camera \
ros-${ROS_DISTRO}-rqt-image-view \
&& rm -rf /var/lib/apt/lists/*
#-----------------------------------------------------------------------------
# bash
COPY ./setup.bash /
RUN echo "source /setup.bash">>/root/.bashrc
RUN echo "source /home/catkin_ws/devel/setup.bash">>/root/.bashrc
RUN echo 'export PS1="\[\e[38;5;40m\]\u\[\e[38;5;15m\]@\[\e[38;5;27m\]\h\[\e[38;5;15m\]:\[\e[38;5;128m\]\w\[\033[0m\]$ "'>>/root/.bashrc
RUN echo "export NO_AT_BRIDGE=1">>/root/.bashrc
RUN echo "umask g+w">>/root/.bashrc
USER user
CMD ["bash"]