From b82b44bc1a1c78e9185d18f6fc834e11ebaad807 Mon Sep 17 00:00:00 2001 From: "Denis S. Soldatov aka General-Beck" Date: Wed, 22 Jun 2016 02:05:10 +0700 Subject: [PATCH] Create Dockerfile Dockerfile to build parity for CentOS --- docker/centos/Dockerfile | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 docker/centos/Dockerfile diff --git a/docker/centos/Dockerfile b/docker/centos/Dockerfile new file mode 100644 index 000000000..5ce61129f --- /dev/null +++ b/docker/centos/Dockerfile @@ -0,0 +1,25 @@ +FROM centos:latest +WORKDIR /build +# install tools and dependencies +RUN yum -y update&& \ + yum install -y git make gcc-c++ gcc file +# install rustup +RUN curl -sSf https://static.rust-lang.org/rustup.sh -o rustup.sh &&\ +ls&&\ + sh rustup.sh -s -- --disable-sudo +# show backtraces +ENV RUST_BACKTRACE 1 +ENV CXX g++ +ENV CC gcc +RUN rustc -vV && \ +cargo -V && \ +gcc -v &&\ +g++ -v +# git clone parity +RUN git clone https://github.com/ethcore/parity && \ + cd parity&&\ + ls -a&&\ + cargo build --release --verbose && \ + ls /build/parity/target/release/parity && \ + file /build/parity/target/release/parity && \ +RUN file /build/parity/target/release/parity