c754a028e0
* parity-version: bump stable to 1.11.8 * ci: update version strings for snaps * Be more graceful on Aura difficulty validation (#9164) * Be more graceful on Aura difficulty validation * test: rejects_step_backwards * test: proposer_switching * test: rejects_future_block * test: reports_skipped * test: verify_empty_seal_steps * parity: fix UserDefaults json parser (#9189) * parity: fix UserDefaults json parser * parity: use serde_derive for UserDefaults * parity: support deserialization of old UserDefault json format * parity: make UserDefaults serde backwards compatible * parity: tabify indentation in UserDefaults * Fix bugfix hard fork logic (#9138) * Fix bugfix hard fork logic * Remove dustProtectionTransition from bugfix category EIP-168 is not enabled by default * Remove unnecessary 'static * Disable per-sender limit for local transactions. (#9148) * Disable per-sender limit for local transactions. * Add a missing new line. * rpc: fix is_major_importing sync state condition (#9112) * rpc: fix is_major_importing sync state condition * rpc: fix informant printout when waiting for peers * fix verification in ethcore-sync collect_blocks (#9135) * docker: update hub dockerfile (#9173) * update Dockerfile for hub update to Ubuntu Xenial 16.04 fix cmake version * docker: fix tab indentation in hub dockerfile * ethcore: update to parity-wasm 0.31 * rpc: fix broken merge
68 lines
1.7 KiB
Docker
68 lines
1.7 KiB
Docker
FROM ubuntu:xenial
|
|
MAINTAINER Parity Technologies <devops@parity.io>
|
|
WORKDIR /build
|
|
#ENV for build TAG
|
|
ARG BUILD_TAG
|
|
ENV BUILD_TAG ${BUILD_TAG:-master}
|
|
RUN echo "Build tag:" $BUILD_TAG
|
|
# install tools and dependencies
|
|
RUN apt-get update && \
|
|
apt-get install -y --force-yes --no-install-recommends \
|
|
# make
|
|
build-essential \
|
|
# add-apt-repository
|
|
software-properties-common \
|
|
make \
|
|
cmake \
|
|
curl \
|
|
wget \
|
|
git \
|
|
g++ \
|
|
gcc \
|
|
libc6 \
|
|
libc6-dev \
|
|
binutils \
|
|
file \
|
|
openssl \
|
|
libssl-dev \
|
|
libudev-dev \
|
|
pkg-config \
|
|
dpkg-dev \
|
|
libudev-dev &&\
|
|
# install rustup
|
|
curl https://sh.rustup.rs -sSf | sh -s -- -y && \
|
|
# rustup directory
|
|
PATH=/root/.cargo/bin:$PATH && \
|
|
# show backtraces
|
|
RUST_BACKTRACE=1 && \
|
|
# build parity
|
|
cd /build&&git clone https://github.com/paritytech/parity && \
|
|
cd parity && \
|
|
git pull&& \
|
|
git checkout $BUILD_TAG && \
|
|
cargo build --verbose --release --features final && \
|
|
strip /build/parity/target/release/parity && \
|
|
file /build/parity/target/release/parity&&mkdir -p /parity&& cp /build/parity/target/release/parity /parity&&\
|
|
#cleanup Docker image
|
|
rm -rf /root/.cargo&&rm -rf /root/.multirust&&rm -rf /root/.rustup&&rm -rf /build&&\
|
|
apt-get purge -y \
|
|
# make
|
|
build-essential \
|
|
# add-apt-repository
|
|
software-properties-common \
|
|
make \
|
|
cmake \
|
|
curl \
|
|
wget \
|
|
git \
|
|
g++ \
|
|
gcc \
|
|
binutils \
|
|
file \
|
|
pkg-config \
|
|
dpkg-dev &&\
|
|
rm -rf /var/lib/apt/lists/*
|
|
# setup ENTRYPOINT
|
|
EXPOSE 8080 8545 8180
|
|
ENTRYPOINT ["/parity/parity"]
|