Can't replicate usage
Hello!
I've tried playing around with your project, however, after following the instructions in the README file, I can't get it to run.
After running $ vgo mod -vendor, this is the output in the console: https://gist.github.com/Oxyrus/82e1111479f757d954a3e3121bfe1d07
And once I run $ docker-compose up -d --build this is the output/error:
Building account_db
Step 1/3 : FROM postgres:10.3
---> b5ed9a4ab65b
Step 2/3 : COPY up.sql /docker-entrypoint-initdb.d/1.sql
---> Using cache
---> ade6d4dab6a2
Step 3/3 : CMD ["postgres"]
---> Using cache
---> 18ec8160de75
Successfully built 18ec8160de75
Successfully tagged spidey_account_db:latest
Building account
Step 1/11 : FROM golang:1.10.2-alpine3.7 AS build
---> 44ccce322b34
Step 2/11 : RUN apk --no-cache add gcc g++ make ca-certificates
---> Using cache
---> dab491024018
Step 3/11 : WORKDIR /go/src/github.com/tinrab/spidey/account
---> Using cache
---> d8621f59b3f2
Step 4/11 : COPY vendor ../vendor
ERROR: Service 'account' failed to build: COPY failed: stat /var/lib/docker/tmp/docker-builder453847030/vendor: no such file or directory
My Go version is 1.10.3, I wonder if this is related to vgo because I've never used it before. Thanks a lot for any help provided!
It works for me.
$ go version
go version go1.10.3 linux/amd64
$ vgo version
go version go1.10.3 linux/amd64 vgo:2018-02-20.1
$ docker --version
Docker version 18.05.0-ce, build f150324
$ docker-compose --version
docker-compose version 1.21.2, build a133471
Does vendor directory exist? Try deleting vendor and go.mod, then update vgo and vgo mod -vendor again. I have no idea what's going on with that gist you linked :grin:
The vendor directory doesn't exist. I tried deleting go.mod and running vgo mod -vendor again and this was the output, just a bunch of errors: https://gist.github.com/Oxyrus/2ad6a71dc4f3808bcdd199e9bdbc664b
Edit: Ended up using dep instead of vgo, worked like a charm 😃 .