Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker BUILD is BROKEN (v1.0.7-hf.1) #193

Closed
maxUo opened this issue May 7, 2021 · 2 comments
Closed

Docker BUILD is BROKEN (v1.0.7-hf.1) #193

maxUo opened this issue May 7, 2021 · 2 comments

Comments

@maxUo
Copy link

maxUo commented May 7, 2021

Release tag:

https://github.com/binance-chain/bsc/releases/tag/v1.0.7-hf.1

Dockerfile:

FROM golang:1.15-alpine as builder

RUN apk add --no-cache make gcc musl-dev linux-headers git bash unzip

# Temporarily pull a custom Go bundle
ADD https://golang.org/dl/go1.15.5.src.tar.gz /tmp/go.tar.gz
RUN (cd /tmp && tar -xf go.tar.gz)
RUN (cd /tmp/go/src && ./make.bash)
ENV PATH="/tmp/go/bin:${PATH}"

RUN mkdir -p /go-ethereum
WORKDIR /go-ethereum
RUN wget https://github.com/binance-chain/bsc/archive/v1.0.7-hf.1.zip && unzip v1.0.7-hf.1.zip && mv bsc-1.0.7-hf.1/* .
RUN make geth

RUN wget --no-check-certificate https://github.com/binance-chain/bsc/releases/download/v1.0.7-hf.1/mainnet.zip && \
    unzip mainnet.zip

FROM alpine:latest

RUN mkdir -p /opt/bsc
WORKDIR /opt/bsc

RUN apk add --no-cache ca-certificates curl python3
COPY --from=builder /go-ethereum/build/bin/geth /usr/local/bin/
COPY --from=builder /go-ethereum/config.toml /opt/bsc/
COPY --from=builder /go-ethereum/genesis.json /opt/bsc/

EXPOSE 8545 8546 8547 30303 30303/udp
ENTRYPOINT ["geth"]

Error log:

 ...
#18 22.86 go: downloading google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55
#18 22.90 go: downloading github.com/cespare/xxhash/v2 v2.1.1
#18 22.94 verifying github.com/btcsuite/btcd@v0.20.0-beta: checksum mismatch
#18 22.94       downloaded: h1:DnZGUjFbRkpytojHWwy6nfUSA7vFrzWXDLpFNzt74ZA=
#18 22.94       go.sum:     h1:PamBMopnHxO2nEIsU89ibVVnqnXR2yFTgGNc+PdG68o=
#18 22.94 
#18 22.94 SECURITY ERROR
#18 22.94 This download does NOT match an earlier download recorded in go.sum.
#18 22.94 The bits may have been replaced on the origin server, or an attacker may
#18 22.94 have intercepted the download attempt.
#18 22.94 
#18 22.94 For more information, see 'go help module-auth'.
#18 22.98 util.go:45: exit status 1
#18 22.98 exit status 1
#18 22.99 make: *** [Makefile:16: geth] Error 1
------
executor failed running [/bin/sh -c make geth]: exit code: 2

Also semiliar crash error with default Dockerfile...

Note :

This needs to be fixed as soon as possible. @guagualvcha

Why are you releasing a new version that can't be compiled?

@maxUo maxUo changed the title Release build v1.0.7-hf.1 failed Docker BUILD is BROKEN (v1.0.7-hf.1) May 7, 2021
@unclezoro
Copy link
Collaborator

unclezoro commented May 7, 2021

Hi @maxUo This compile issue is not introduced in this release, there are many complaints about github.com/btcsuite/btcd@v0.20.0-beta, this repo draft a release and delete it and re-draft it, so that cause the mismatch of checksum, anyway, I have bumped the version to v0.20.1-beta in this PR #194. You can fetch the latest code and recompile it.

@unclezoro
Copy link
Collaborator

I will close this issue first, feel free to open a new one if there is any issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants