-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
43 lines (34 loc) · 849 Bytes
/
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
FROM ubuntu:16.04
MAINTAINER Daisuke Miyamoto <[email protected]>
ARG CFLAGS="-O3"
ARG CXXFLAGS="-O3"
RUN apt-get update \
&& apt-get install -y \
locales \
wget \
gcc \
g++ \
build-essential \
openmpi-bin \
openmpi-common \
libopenmpi-dev \
&& localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8 \
&& rm -rf /var/lib/apt/lists/* \
&& apt-get autoclean
RUN useradd bench \
&& mkdir /work
COPY Makefile /work/
COPY run.sh /work/
COPY run_small.sh /work/
COPY himeno /work/himeno
COPY stream /work/stream
COPY fio /work/fio
COPY unixbench /work/unixbench
COPY jobs /work/jobs
RUN chown -R bench /work
USER bench
WORKDIR /work
RUN make \
&& chmod +x jobs/* \
&& chmod +x run.sh \
&& chmod +x run_small.sh