Unable to build Dockerfiles
Closed this issue · 1 comments
Deleted user commented
Having the run docker-build
in either 0.2.10 or 0.2.12 results in the following errors:
$ docker-compose build
Building lino
Step 1/16 : FROM golang:1.9
---> ef89ef5c42a9
Step 2/16 : RUN apt-get update && apt-get -y install wget curl sudo && apt-get install -y git
---> Using cache
---> 962d5032c09c
Step 3/16 : RUN mkdir -p src/github.com/lino-network/lino
---> Using cache
---> ce15f94bad63
Step 4/16 : WORKDIR src/github.com/lino-network/lino
---> Using cache
---> bf6734f65acd
Step 5/16 : COPY . .
---> a8bcece9fee2
Step 6/16 : RUN go get -u github.com/golang/dep/cmd/dep
---> Running in b58c55fae2bd
Removing intermediate container b58c55fae2bd
---> 6233674f4b37
Step 7/16 : RUN dep ensure
---> Running in 561d002b3022
Removing intermediate container 561d002b3022
---> c23661064166
Step 8/16 : WORKDIR cmd/lino
---> Running in 812953a3bff0
Removing intermediate container 812953a3bff0
---> 1ad47ae8048d
Step 9/16 : RUN go build
---> Running in 812025eee637
# github.com/lino-network/lino/vendor/github.com/tendermint/tendermint/p2p/pex
../../vendor/github.com/tendermint/tendermint/p2p/pex/addrbook.go:373:13: undefined: math.Round
../../vendor/github.com/tendermint/tendermint/p2p/pex/addrbook.go:660:2: undefined: "math/rand".Shuffle
# github.com/lino-network/lino/vendor/github.com/cosmos/cosmos-sdk/types
../../vendor/github.com/cosmos/cosmos-sdk/types/result.go:193:9: undefined: strings.Builder
../../vendor/github.com/cosmos/cosmos-sdk/types/tags.go:93:9: undefined: strings.Builder
ERROR: Service 'lino' failed to build: The command '/bin/sh -c go build' returned a non-zero code: 2
Stumble commented
Thanks for the report.
We have updated the dockerfile, see https://github.com/lino-network/lino/blob/master/Dockerfile. Also, you can:
make docker-up
It requires as least 32GB memory to start because it needs to import the whole state from the last upgrade and commit the whole state in the first block.