-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
37 lines (31 loc) · 1.26 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
FROM osrf/ros:kinetic-desktop-full-xenial
# System settings
RUN echo "fs.inotify.max_user_watches = 524288" >> /etc/sysctl.conf
RUN sysctl -p --system
# Create non-root user -- many systems default to 1000 so we'll do that here to make things compatible
RUN groupadd --system dev --gid 1000 && \
useradd --uid 1000 --system --gid dev \
--home-dir /home/dev --create-home \
--comment "Docker image user" dev && \
chown -R dev:dev /home/dev
# it's a raspberry pi now (the password is raspberry)
RUN echo "dev:raspberry" | chpasswd && adduser dev sudo
# Install make and compilers and extra stuff
RUN apt-get update && \
apt-get install -y \
build-essential autoconf automake \
sudo vim nano git curl wget \
python-numpy python-scipy python-opencv && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* && \
rm -rf /tmp/*
# CLion version
ENV VERSION 2018.1
# NOTE(danny): this will become outdated faster than docker swarm in 2018, so keep an eye on it
# NOTE(danny): you should probably keep this locally as clion.tar.gz when testing
# but make sure to comment out the tar in the .dockerignore file
WORKDIR /opt
RUN curl -L https://download.jetbrains.com/cpp/CLion-$VERSION.tar.gz | tar xvz
# override the ROS entrypoint
ENTRYPOINT []
USER dev