-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
50 lines (37 loc) · 1.22 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:18.04
RUN apt-get update
RUN apt-get upgrade -y
RUN apt-get update &&\
apt-get install -y software-properties-common apt-utils &&\
add-apt-repository ppa:git-core/ppa &&\
apt-get update &&\
apt-get install -y git make wget vim
RUN apt-get install -y openjdk-8-jdk && \
update-alternatives --config java && \
apt-get install unzip gcc python python3 python3-pip -y
RUN apt-get install -y libaio-dev
RUN mkdir -p /diobench/
COPY requirements.txt /diobench/
WORKDIR /diobench
RUN pip3 install -r requirements.txt
# vdbench
RUN mkdir -p /diobench/vdbench
RUN wget --quiet https://github.com/masakioui/vdb/raw/master/vdbench50407.tar \
-O /diobench/vdbench/vdbench50407.tar
RUN cd /diobench/vdbench && tar xvf vdbench50407.tar
# fio
RUN cd /diobench && git clone https://github.com/axboe/fio.git
RUN cd /diobench/fio && ./configure
RUN cd /diobench/fio && make
RUN cd /diobench/fio && make install
RUN cd /diobench/fio && make clean
RUN cd /diobench && rm -rf fio
COPY diobench /bin
RUN mkdir /data
COPY fiorun/ /diobench/fiorun/
COPY vdbrun/ /diobench/vdbrun/
# Removed unnecessary packages
RUN apt-get autoremove -y
# Clear package repository cache
RUN apt-get clean all
ENTRYPOINT ["tail", "-f", "/dev/null"]