forked from openethereum/parity-ethereum
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/paritytech/parity into wa…
…rp_sync_on_light_client * 'master' of https://github.com/paritytech/parity: Allow setting the panic hook with parity-clib (openethereum#9292) Prevent blockchain & miner racing when accessing pending block. (openethereum#9310) Docker alpine: use multi-stage concept (openethereum#9269) Update `log` -> 0.4, `env_logger` -> 0.5. (openethereum#9294) Update tobalaba.json (openethereum#9313) Allow tx pool to be Send (openethereum#9315) Fix codecov.io badge in README (openethereum#9327) Move ethereum-specific H256FastMap type to own crate (openethereum#9307) ethcore sync decodes rlp less often (openethereum#9264)
- Loading branch information
Showing
67 changed files
with
715 additions
and
463 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,43 @@ | ||
FROM alpine:edge | ||
FROM alpine:edge AS builder | ||
|
||
# show backtraces | ||
ENV RUST_BACKTRACE 1 | ||
|
||
RUN apk add --no-cache \ | ||
build-base \ | ||
cargo \ | ||
cmake \ | ||
eudev-dev \ | ||
linux-headers \ | ||
perl \ | ||
rust | ||
|
||
WORKDIR /build | ||
WORKDIR /parity | ||
COPY . /parity | ||
RUN cargo build --release --target x86_64-alpine-linux-musl --verbose | ||
RUN strip target/x86_64-alpine-linux-musl/release/parity | ||
|
||
# install tools and dependencies | ||
RUN apk add --no-cache gcc musl-dev pkgconfig g++ make curl \ | ||
eudev-dev rust cargo git file binutils \ | ||
libusb-dev linux-headers perl cmake | ||
|
||
FROM alpine:edge | ||
|
||
# show backtraces | ||
ENV RUST_BACKTRACE 1 | ||
|
||
# show tools | ||
RUN rustc -vV && \ | ||
cargo -V && \ | ||
gcc -v &&\ | ||
g++ -v | ||
RUN apk add --no-cache \ | ||
libstdc++ \ | ||
eudev-libs \ | ||
libgcc | ||
|
||
# build parity | ||
ADD . /build/parity | ||
RUN cd parity && \ | ||
cargo build --release --verbose && \ | ||
ls /build/parity/target/release/parity && \ | ||
strip /build/parity/target/release/parity | ||
RUN addgroup -g 1000 parity \ | ||
&& adduser -u 1000 -G parity -s /bin/sh -D parity | ||
|
||
RUN file /build/parity/target/release/parity | ||
USER parity | ||
|
||
EXPOSE 8080 8545 8180 | ||
ENTRYPOINT ["/build/parity/target/release/parity"] | ||
|
||
WORKDIR /home/parity | ||
|
||
RUN mkdir -p /home/parity/.local/share/io.parity.ethereum/ | ||
COPY --chown=parity:parity --from=builder /parity/target/x86_64-alpine-linux-musl/release/parity ./ | ||
|
||
ENTRYPOINT ["./parity"] |
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Oops, something went wrong.