-
Notifications
You must be signed in to change notification settings - Fork 9
/
Dockerfile
50 lines (36 loc) · 1.56 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
FROM ubuntu:20.04
MAINTAINER "Javier Hidalgo-Carrió" <https://jhidalgocarrio.github.io>
# Avoid dialogue
ARG DEBIAN_FRONTEND=noninteractive
# Update the system
RUN apt-get update && \
apt-get upgrade -y
RUN apt install -y --no-install-recommends \
sudo zsh ssh vim build-essential cmake git git-gui pkg-config libgtk-3-dev \
libavcodec-dev libavformat-dev libswscale-dev libv4l-dev \
libxvidcore-dev libx264-dev libjpeg-dev libpng-dev libtiff-dev \
gfortran openexr libatlas-base-dev python3-dev python3-numpy \
libtbb2 libtbb-dev libdc1394-22-dev wget software-properties-common
RUN apt-get install -y --no-install-recommends ruby ruby-dev
RUN apt-get install -y --no-install-recommends libboost-all-dev
# Create javi user
RUN adduser --disabled-password --gecos -m javi && adduser javi sudo && echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
ENV HOME /home/javi
USER javi
WORKDIR /home/javi
ENV SHELL /usr/bin/zsh
SHELL ["/usr/bin/zsh", "-c"]
RUN mkdir /home/javi/rock
RUN mkdir /home/javi/rock/dev
RUN git config --global user.email "[email protected]"
RUN git config --global user.name "Javier Hidalgo-Carrió"
# Install EDS
WORKDIR /home/javi/rock/dev
RUN wget https://raw.githubusercontent.com/rock-core/autoproj/stable/bin/autoproj_bootstrap
RUN ruby autoproj_bootstrap git https://github.com/uzh-rpg/eds-buildconf.git [email protected]:uzh-rpg/eds-buildconf.git --no-interactive
# Update and build
RUN source env.sh &&\
autoproj update --no-interactive &&\
autoproj build -k --no-interactive
# Attaching point
CMD /usr/bin/zsh