Merge pull request #1424 from General-Beck/patch-4
Update CentOS Dockerfile
This commit is contained in:
commit
59d1a82814
@ -2,24 +2,26 @@ FROM centos:latest
|
|||||||
WORKDIR /build
|
WORKDIR /build
|
||||||
# install tools and dependencies
|
# install tools and dependencies
|
||||||
RUN yum -y update&& \
|
RUN yum -y update&& \
|
||||||
yum install -y git make gcc-c++ gcc file
|
yum install -y git make gcc-c++ gcc file binutils
|
||||||
# install rustup
|
# install rustup
|
||||||
RUN curl -sSf https://static.rust-lang.org/rustup.sh -o rustup.sh &&\
|
RUN curl -sSf https://static.rust-lang.org/rustup.sh -o rustup.sh &&\
|
||||||
ls&&\
|
ls&&\
|
||||||
sh rustup.sh -s -- --disable-sudo
|
sh rustup.sh -s -- --disable-sudo
|
||||||
# show backtraces
|
# show backtraces
|
||||||
ENV RUST_BACKTRACE 1
|
ENV RUST_BACKTRACE 1
|
||||||
|
# set compiler
|
||||||
ENV CXX g++
|
ENV CXX g++
|
||||||
ENV CC gcc
|
ENV CC gcc
|
||||||
|
# show tools
|
||||||
RUN rustc -vV && \
|
RUN rustc -vV && \
|
||||||
cargo -V && \
|
cargo -V && \
|
||||||
gcc -v &&\
|
gcc -v &&\
|
||||||
g++ -v
|
g++ -v
|
||||||
# git clone parity
|
# build parity
|
||||||
RUN git clone https://github.com/ethcore/parity && \
|
RUN git clone https://github.com/ethcore/parity && \
|
||||||
cd parity&&\
|
cd parity&&\
|
||||||
ls -a&&\
|
ls -a&&\
|
||||||
cargo build --release --verbose && \
|
cargo build --release --verbose && \
|
||||||
ls /build/parity/target/release/parity && \
|
ls /build/parity/target/release/parity && \
|
||||||
file /build/parity/target/release/parity && \
|
strip /build/parity/target/release/parity
|
||||||
RUN file /build/parity/target/release/parity
|
RUN file /build/parity/target/release/parity
|
||||||
|
Loading…
Reference in New Issue
Block a user