forked from lichinka/gazebo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
39 lines (30 loc) · 1.18 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
FROM ubuntu:14.04
RUN apt-get update && \
apt-get install -y openssh-server \
patch \
xauth \
wget \
--no-install-recommends
# install Gazebo
WORKDIR /usr/local/src
ADD gazebo7_install.patch gazebo7_install.patch
RUN wget http://osrf-distributions.s3.amazonaws.com/gazebo/gazebo7_install.sh && \
patch < gazebo7_install.patch && \
sh ./gazebo7_install.sh
# user and locale configuration
RUN useradd -m docker && \
cp /usr/share/zoneinfo/Europe/Zurich /etc/localtime && \
dpkg-reconfigure locales
WORKDIR /home/docker
ENV HOME /home/docker
ENV LC_ALL C
# SSH configuration
ADD ssh/id_rsa.pub .ssh/authorized_keys
RUN chmod 700 $HOME/.ssh && \
chmod 600 $HOME/.ssh/authorized_keys && \
mkdir /var/run/sshd && \
chmod 0755 /var/run/sshd && \
cd /home/docker && \
chown -R docker:docker .
EXPOSE 22
CMD ["/usr/sbin/sshd", "-D"]