virtyaluk / go-simple-microservices-app

See how you can set up your own system using a combination of microservices, containers, Go, and MongoDB. In this scenario, see a fictional movie theater come to life.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot build and run the project due to docker-compose build error.

virtyaluk opened this issue · comments

Docker log:

λ docker-compose up --build
Pulling proxy (jwilder/nginx-proxy:)...
latest: Pulling from jwilder/nginx-proxy
be8881be8156: Pull complete
b4babd36efe5: Pull complete
f4eba7658e18: Pull complete
fc141716ac64: Pull complete
87b964c68304: Pull complete
d07092114f4c: Pull complete
5092b1e0c1da: Pull complete
d90a3596290d: Pull complete
5ca9f664a671: Pull complete
eb9b93208683: Pull complete
Digest: sha256:e869d7aea7c5d4bae95c42267d22c913c46afd2dd8113ebe2a24423926ba1fff
Status: Downloaded newer image for jwilder/nginx-proxy:latest
Pulling db (mongo:3.3)...
3.3: Pulling from library/mongo
386a066cd84a: Pull complete
524267bc200a: Pull complete
476d61c7c43a: Pull complete
0750d0e28b90: Pull complete
c2a78c5fad8e: Pull complete
14474a0ebc1b: Pull complete
0b42389b77aa: Pull complete
de77b4fcbe14: Pull complete
975aabf0feac: Pull complete
Digest: sha256:08a90c3d7c40aca81f234f0b2aaeed0254054b1c6705087b10da1c1901d07b5d
Status: Downloaded newer image for mongo:3.3
Building users
Step 1/8 : FROM golang:1.6
1.6: Pulling from library/golang
5040bd298390: Pull complete
fce5728aad85: Pull complete
76610ec20bf5: Pull complete
86b681f75ff6: Pull complete
77855d2f51f6: Pull complete
b989296b493d: Pull complete
2d403c19702e: Pull complete
Digest: sha256:29116f0f6cd2ef6a882639ee222ccb6e2f6d88a1d97d461aaf4c4a2622d252a1
Status: Downloaded newer image for golang:1.6
 ---> 63330314bb46
Step 2/8 : RUN go get gopkg.in/mgo.v2
 ---> Running in e84c02e3922c
Removing intermediate container e84c02e3922c
 ---> 6495210a8e59
Step 3/8 : RUN go get github.com/gorilla/mux
 ---> Running in 28c18863a499
package context: unrecognized import path "context" (import path does not begin with hostname)
ERROR: Service 'users' failed to build: The command '/bin/sh -c go get github.com/gorilla/mux' returned a non-zero code: 1

Docker version:

λ docker version
Client:
 Version:           18.06.1-ce
 API version:       1.38
 Go version:        go1.10.3
 Git commit:        e68fc7a
 Built:             Tue Aug 21 17:21:34 2018
 OS/Arch:           windows/amd64
 Experimental:      false

Server:
 Engine:
  Version:          18.06.1-ce
  API version:      1.38 (minimum version 1.12)
  Go version:       go1.10.3
  Git commit:       e68fc7a
  Built:            Tue Aug 21 17:29:02 2018
  OS/Arch:          linux/amd64
  Experimental:     false

Go version:

λ go version
go version go1.11.1 windows/amd64