-
Notifications
You must be signed in to change notification settings - Fork 262
/
Dockerfile
24 lines (21 loc) · 1009 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
# nativejson-benchmark
# build with: docker build -t nativejson-benchmark .
FROM debian:jessie
COPY . /nativejson-benchmark
WORKDIR /nativejson-benchmark
ENV PATH $PATH:/nativejson-benchmark/build
RUN buildDeps='build-essential gcc-multilib g++-multilib git-core curl ca-certificates php5-cli libboost-all-dev'; \
set -x \
&& apt-get update && apt-get install --no-install-recommends -y $buildDeps \
&& cd /nativejson-benchmark \
&& git submodule update --init \
&& git -C thirdparty/boost submodule update --init \
&& cd build \
&& curl -L -s https://github.com/premake/premake-core/releases/download/v5.0.0-alpha7/premake-5.0.0-alpha7-linux.tar.gz | tar -xvz \
&& chmod +x premake5 && chmod +x premake.sh && sync && /bin/sh -c ./premake.sh && ./machine.sh \
&& cd /nativejson-benchmark && make \
&& cd /nativejson-benchmark/bin \
&& for t in *; do ./$t; done \
&& cd /nativejson-benchmark/result && make \
&& apt-get purge -y --auto-remove $buildDeps
VOLUME ["/nativejson-benchmark/output"]