mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-20 21:54:30 +00:00
Add new pipeline for bootnode binary
This commit is contained in:
parent
a9e0b66e20
commit
8491751764
2 changed files with 27 additions and 4 deletions
|
|
@ -3,14 +3,14 @@ FROM golang:1.10-alpine as builder
|
|||
|
||||
RUN apk add --no-cache make gcc musl-dev linux-headers
|
||||
|
||||
ADD . /XDC
|
||||
RUN cd /XDC && make XDC
|
||||
ADD . /XDCchain
|
||||
RUN cd /XDCchain && make XDC
|
||||
|
||||
FROM alpine:latest
|
||||
|
||||
LABEL maintainer="admin@xinfin.org"
|
||||
|
||||
WORKDIR /XDC
|
||||
WORKDIR /XDCchain
|
||||
|
||||
COPY --from=builder /XDCchain/build/bin/XDC /usr/local/bin/XDC
|
||||
|
||||
|
|
@ -19,6 +19,7 @@ RUN chmod +x /usr/local/bin/XDC
|
|||
EXPOSE 8545
|
||||
EXPOSE 30303
|
||||
|
||||
ENTRYPOINT ["/usr/local/bin/XDC", "--help"]
|
||||
ENTRYPOINT ["/usr/local/bin/XDC"]
|
||||
|
||||
CMD ["--help"]
|
||||
|
||||
|
|
|
|||
22
Dockerfile.bootnode
Normal file
22
Dockerfile.bootnode
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
FROM golang:1.10-alpine as builder
|
||||
|
||||
RUN apk add --no-cache make gcc musl-dev linux-headers
|
||||
|
||||
ADD . /XDCchain
|
||||
RUN cd /XDCchain && make bootnode
|
||||
|
||||
FROM alpine:latest
|
||||
|
||||
LABEL maintainer="admin@xinfin.org"
|
||||
|
||||
WORKDIR /XDCchain
|
||||
|
||||
COPY --from=builder /XDCchain/build/bin/bootnode /usr/local/bin/bootnode
|
||||
|
||||
RUN chmod +x /usr/local/bin/bootnode
|
||||
|
||||
EXPOSE 30301
|
||||
|
||||
ENTRYPOINT ["/usr/local/bin/bootnode"]
|
||||
|
||||
CMD ["--help"]
|
||||
Loading…
Reference in a new issue