From fc1610acb8a40464062a69ace8f1378e683a4aed Mon Sep 17 00:00:00 2001 From: debris Date: Mon, 1 Feb 2016 12:35:52 +0100 Subject: [PATCH] updated docker containers --- docker/{ => ubuntu-dev}/Dockerfile | 0 docker/ubuntu-jit/Dockerfile | 46 ++++++++++++++++++++++++++++++ docker/ubuntu/Dockerfile | 31 ++++++++++++++++++++ 3 files changed, 77 insertions(+) rename docker/{ => ubuntu-dev}/Dockerfile (100%) create mode 100644 docker/ubuntu-jit/Dockerfile create mode 100644 docker/ubuntu/Dockerfile diff --git a/docker/Dockerfile b/docker/ubuntu-dev/Dockerfile similarity index 100% rename from docker/Dockerfile rename to docker/ubuntu-dev/Dockerfile diff --git a/docker/ubuntu-jit/Dockerfile b/docker/ubuntu-jit/Dockerfile new file mode 100644 index 000000000..6229c1524 --- /dev/null +++ b/docker/ubuntu-jit/Dockerfile @@ -0,0 +1,46 @@ +FROM ubuntu:14.04 + +# install tools and dependencies +RUN apt-get update && \ + apt-get install -y \ + # make + build-essential \ + # add-apt-repository + software-properties-common \ + curl \ + wget \ + git \ + # evmjit dependencies + zlib1g-dev \ + libedit-dev + +# cmake, llvm and rocksdb ppas. then update ppas +RUN add-apt-repository -y "ppa:george-edison55/cmake-3.x" && \ + add-apt-repository "deb http://llvm.org/apt/trusty/ llvm-toolchain-trusty-3.7 main" && \ + add-apt-repository "deb http://ppa.launchpad.net/giskou/librocksdb/ubuntu trusty main" && \ + apt-get update && \ + apt-get install -y --force-yes cmake llvm-3.7-dev librocksdb + +# install evmjit +RUN git clone https://github.com/debris/evmjit && \ + cd evmjit && \ + mkdir build && cd build && \ + cmake .. && make && make install && cd + +# install multirust +RUN curl -sf https://raw.githubusercontent.com/brson/multirust/master/blastoff.sh | sh -s -- --yes + +# install nightly and make it default +RUN multirust update nightly && multirust default nightly + +# export rust LIBRARY_PATH +ENV LIBRARY_PATH /usr/local/lib + +# show backtraces +ENV RUST_BACKTRACE 1 + +# build parity +# TODO: add jit feature +RUN git clone https://github.com/ethcore/parity && \ + cd parity && \ + cargo install --features rpc diff --git a/docker/ubuntu/Dockerfile b/docker/ubuntu/Dockerfile new file mode 100644 index 000000000..a6b05f38a --- /dev/null +++ b/docker/ubuntu/Dockerfile @@ -0,0 +1,31 @@ +FROM ubuntu:14.04 + +# install tools and dependencies +RUN apt-get update && \ + apt-get install -y \ + curl \ + git \ + # add-apt-repository + software-properties-common + +# rocksdb ppas. then update ppas +RUN add-apt-repository "deb http://ppa.launchpad.net/giskou/librocksdb/ubuntu trusty main" && \ + apt-get update && \ + apt-get install -y --force-yes librocksdb + +# install multirust +RUN curl -sf https://raw.githubusercontent.com/brson/multirust/master/blastoff.sh | sh -s -- --yes + +# install nightly and make it default +RUN multirust update nightly && multirust default nightly + +# export rust LIBRARY_PATH +ENV LIBRARY_PATH /usr/local/lib + +# show backtraces +ENV RUST_BACKTRACE 1 + +# build parity +RUN git clone https://github.com/ethcore/parity && \ + cd parity && \ + cargo install --features rpc