Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 7 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,21 @@
# build with: docker build -t nativejson-benchmark .
FROM debian:jessie

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

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 \
RUN set -x \
&& cd /nativejson-benchmark/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
&& cd /nativejson-benchmark/result && make

VOLUME ["/nativejson-benchmark/output"]