iost-official / go-iost

Official Go implementation of the IOST blockchain
https://developers.iost.io/
GNU Lesser General Public License v3.0
565 stars 112 forks source link

Docker build fails #4

Closed jerkyrs closed 6 years ago

jerkyrs commented 6 years ago

What I did 1) Clone repository 2) Run docker build -f Dockerfile .

What i saw

Sending build context to Docker daemon 11.29 MB
Step 1 : FROM golang:1.10
Trying to pull repository docker.io/library/golang ... 
1.10: Pulling from docker.io/library/golang
cc1a78bfd46b: Pull complete 
6861473222a6: Pull complete 
7e0b9c3b5ae0: Pull complete 
3ec98735f56f: Pull complete 
32ecd1fcfe1a: Pull complete 
9889d58a42e5: Pull complete 
337bad6698be: Pull complete 
Digest: sha256:2ffa2f093d20c46e86435626f11bf163797400cf8f7cf14ecdc6403f1930045c
Status: Downloaded newer image for docker.io/golang:1.10
 ---> 6b369f7eed80
Step 2 : RUN go get github.com/kardianos/govendor
 ---> Running in c91541522d0f
 ---> 934b979f0011
Removing intermediate container c91541522d0f
Step 3 : COPY . /go/src/github.com/iost-official/prototype/
 ---> e82b937c07b2
Removing intermediate container 35d3e5437db8
Step 4 : RUN cd /go/src/github.com/iost-official/prototype/ && govendor sync -v
 ---> Running in 532a28db72fe
fetch "github.com/ethereum/go-ethereum/crypto/secp256k1"
fetch "github.com/golang/mock/gomock"
fetch "github.com/spf13/viper"
 ---> 3776e61423f1
Removing intermediate container 532a28db72fe
Step 5 : RUN go get github.com/golang/protobuf/proto github.com/iost-official/gopher-lua github.com/mitchellh/go-homedir
 ---> Running in 00e8a97e7631
 ---> 6a998db1005c
Removing intermediate container 00e8a97e7631
Step 6 : RUN go get golang.org/x/net/context google.golang.org/grpc
 ---> Running in cc0bee3387df
 ---> e266d00eacab
Removing intermediate container cc0bee3387df
Step 7 : RUN go build -o $GOPATH/bin/iwallet github.com/iost-official/prototype/iwallet
 ---> Running in ef56899e32fd
src/github.com/iost-official/prototype/iwallet/main.go:3:8: cannot find package "github.com/spf13/cobra/cobra/cmd" in any of:
        /go/src/github.com/iost-official/prototype/vendor/github.com/spf13/cobra/cobra/cmd (vendor tree)
        /usr/local/go/src/github.com/spf13/cobra/cobra/cmd (from $GOROOT)
        /go/src/github.com/spf13/cobra/cobra/cmd (from $GOPATH)
The command '/bin/sh -c go build -o $GOPATH/bin/iwallet github.com/iost-official/prototype/iwallet' returned a non-zero code: 1
kaidiren commented 6 years ago

the code is incomplete, just waiting for more code to be pushed

jerkyrs commented 6 years ago

Certainly getting better as now i can build containers! seems like build directory is built in container with mounted volume. interesting..

Successfully built 65133e6dda2b
Successfully tagged iost-node:1.0.3-d05a54a

https://github.com/iost-official/Go-IOS-Protocol/wiki/Docker-Installation