-
Notifications
You must be signed in to change notification settings - Fork 6
/
Dockerfile
39 lines (31 loc) · 917 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
FROM ubuntu
MAINTAINER [email protected]
WORKDIR ./
RUN apt-get update
ENV DEBIAN_FRONTEND noninteractive
# Install tools
RUN apt install -y python3-pip
RUN pip3 install cmake
RUN pip3 install conan
RUN apt install -y gcc-10
RUN apt install -y g++-10
RUN apt-get install -y libexplain-dev
RUN apt-get install -y libsnappy-dev
RUN apt-get install -yq pkg-config
RUN apt-get install -y git
# Build WiredTiger (latest)
RUN git clone git://github.com/wiredtiger/wiredtiger.git
RUN mkdir ./wiredtiger/build
WORKDIR "./wiredtiger/build"
RUN cmake ../.
RUN make install
WORKDIR /
# Build UCSB
RUN git clone https://github.com/unum-cloud/ucsb.git
WORKDIR "./ucsb/"
RUN update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-10 10
RUN update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-10 10
RUN bash -i setup.sh
RUN bash -i build_release.sh
RUN rm -rf ./bench
ENTRYPOINT ["./build_release/bin/ucsb_bench"]