2016-06-21 21:05:10 +02:00
|
|
|
FROM centos:latest
|
|
|
|
WORKDIR /build
|
|
|
|
# install tools and dependencies
|
|
|
|
RUN yum -y update&& \
|
2016-06-24 19:59:03 +02:00
|
|
|
yum install -y git make gcc-c++ gcc file binutils
|
2016-06-21 21:05:10 +02:00
|
|
|
# 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
|
2016-06-24 19:59:03 +02:00
|
|
|
# set compiler
|
2016-06-21 21:05:10 +02:00
|
|
|
ENV CXX g++
|
|
|
|
ENV CC gcc
|
2016-06-24 19:59:03 +02:00
|
|
|
# show tools
|
2016-06-21 21:05:10 +02:00
|
|
|
RUN rustc -vV && \
|
|
|
|
cargo -V && \
|
|
|
|
gcc -v &&\
|
|
|
|
g++ -v
|
2016-06-24 19:59:03 +02:00
|
|
|
# build parity
|
2016-06-21 21:05:10 +02:00
|
|
|
RUN git clone https://github.com/ethcore/parity && \
|
|
|
|
cd parity&&\
|
|
|
|
ls -a&&\
|
|
|
|
cargo build --release --verbose && \
|
|
|
|
ls /build/parity/target/release/parity && \
|
2016-06-24 19:59:03 +02:00
|
|
|
strip /build/parity/target/release/parity
|
2016-06-21 21:05:10 +02:00
|
|
|
RUN file /build/parity/target/release/parity
|