-
Notifications
You must be signed in to change notification settings - Fork 12
/
Dockerfile
88 lines (78 loc) · 1.78 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
FROM debian:stretch
RUN apt-get update -yq \
&& DEBIAN_FRONTEND=noninteractive \
apt-get install -yq --no-install-recommends \
ca-certificates \
# Yocto requirements
build-essential \
chrpath \
cmake \
cpio \
curl \
debianutils \
diffstat \
gawk \
gcc-multilib \
git-core \
iputils-ping \
libbz2-dev \
libegl1-mesa \
libreadline-dev \
libsdl1.2-dev \
libssl-dev \
locales \
ntpdate \
python3 \
python3-pip \
python3-pexpect \
python3-jinja2 \
python-dev \
screen \
texinfo \
time \
unzip \
wget \
xterm \
xz-utils \
# Oml2 requirements
autoconf \
automake \
libtool \
gnulib \
check \
libpopt-dev \
libsqlite3-dev \
libtool \
libxml2-dev \
libxml2-utils \
pkg-config \
python-matplotlib \
ruby \
sqlite3 \
valgrind \
&& apt-get clean && rm -rf /var/lib/apt/lists/*
RUN mkdir /var/www && chown www-data:www-data /var/www
RUN git clone https://github.com/mytestbed/oml.git && \
cd oml && \
git checkout tags/v2.11.0 && \
./autogen.sh && \
./configure --disable-doc --disable-doxygen-doc --disable-doxygen-dot \
--disable-android --disable-doxygen-html --disable-option-checking && \
make && \
make install && \
cd .. && rm -rf oml
RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen \
&& locale-gen
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US.UTF-8
ENV LC_ALL en_US.UTF-8
WORKDIR /shared
RUN groupadd -g 1000 dev
RUN useradd -u 1000 -g 1000 -m -N dev
RUN chown -R dev:dev /shared
USER dev
RUN git config --global user.email "[email protected]"
RUN git config --global user.name "IoT-LAB"
# bug with ca-certificates
RUN git config --global http.sslverify false
CMD ["/bin/bash"]