-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
53 lines (43 loc) · 1.33 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
ARG ROS_DISTRO
FROM ros:${ROS_DISTRO}-ros-base
ARG DEBIAN_FRONTEND=noninteractive
# make security updates
RUN apt-get update && \
apt-get install -y --no-install-recommends unattended-upgrades && unattended-upgrade && \
rm -rf /var/lib/apt/lists/*
# install common dev tools
RUN export DEBIAN_FRONTEND=noninteractive; \
apt-get update && \
apt-get install -y --no-install-recommends \
bash-completion \
pkg-config \
git \
gosu \
python3-pip \
nano \
ssh \
vim \
&& rm -rf /var/lib/apt/lists/*
# install ament_flake8 non-declared pip deps
RUN pip3 install --no-cache-dir \
flake8-blind-except \
flake8-builtins \
flake8-class-newline \
flake8-comprehensions \
flake8-deprecated \
flake8-docstrings \
flake8-import-order \
flake8-quotes
# install ros tools
RUN apt-get update && \
apt-get install --no-install-recommends -y \
python3-colcon-mixin \
python3-vcstool \
python3-colcon-common-extensions \
&& rm -rf /var/lib/apt/lists/*
RUN echo "PS1='\[\033[01;35m\]ros-$ROS_DISTRO@devel\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '" >> /etc/skel/.bashrc
RUN echo "source /opt/ros/$ROS_DISTRO/setup.bash" >> /etc/skel/.bashrc
ENV GPG_TTY=$(tty)
COPY devel-entrypoint.sh /usr/local/bin
ENTRYPOINT ["devel-entrypoint.sh"]
CMD ["tail", "-f", "/dev/null"]