Last active
January 16, 2017 22:19
-
-
Save koddo/5e339f55e6ba3b80ba9deafa1365e935 to your computer and use it in GitHub Desktop.
build a docker image with ethcore/parity master, see comments
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:14.04 | |
WORKDIR /build | |
# install tools and dependencies | |
RUN apt-get update && \ | |
apt-get install -y \ | |
g++ \ | |
build-essential \ | |
curl \ | |
git \ | |
file \ | |
binutils \ | |
libssl-dev pkg-config | |
# install rustup | |
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y | |
# rustup directory | |
ENV PATH /root/.cargo/bin:$PATH | |
# show backtraces | |
ENV RUST_BACKTRACE 1 | |
# show tools | |
RUN rustc -vV && \ | |
cargo -V && \ | |
gcc -v &&\ | |
g++ -v | |
# build parity | |
RUN git clone https://github.com/ethcore/parity && \ | |
cd parity && \ | |
git checkout 4b85e3e . && \ | |
git pull && \ | |
cargo build --release --verbose && \ | |
ls /build/parity/target/release/parity && \ | |
strip /build/parity/target/release/parity | |
RUN file /build/parity/target/release/parity | |
EXPOSE 8080 8545 8180 | |
ENTRYPOINT ["/build/parity/target/release/parity"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://github.com/ethcore/parity/wiki/Private-development-chain: "Currently available only in the master branch".
Find last successful build of master branch: https://travis-ci.org/ethcore/parity/builds
The Dockerfile in this gist is modified Dockerfile for parity:beta: https://github.com/ethcore/parity/blob/master/docker/ubuntu/Dockerfile
Added
libssl-dev pkg-config
to apt-get install.Changed this line to chechout last successfully built commit (dot is important):
git checkout beta && \
->git checkout 4b85e3e . && \
Build, run.