forked from miloyip/nativejson-benchmark
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
23 lines (20 loc) · 947 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
# 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 \
&& 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 && /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"]