grpc-example icon indicating copy to clipboard operation
grpc-example copied to clipboard

Build.sh fails

Open prestonvanloon opened this issue 9 years ago • 2 comments

I guess there are some prereqs that are missing. Some Go packages that I am missing?

./build.sh
/go/src/github.com/gengo/grpc-gateway/third_party/googleapis: warning: directory does not exist.
google/api/annotations.proto: File not found.
proto/echo.proto: Import "google/api/annotations.proto" was not found or had errors.
/go/src/github.com/gengo/grpc-gateway/third_party/googleapis: warning: directory does not exist.
google/api/annotations.proto: File not found.
proto/echo.proto: Import "google/api/annotations.proto" was not found or had errors.
/go/src/github.com/gengo/grpc-gateway/third_party/googleapis: warning: directory does not exist.
google/api/annotations.proto: File not found.
proto/echo.proto: Import "google/api/annotations.proto" was not found or had errors.
can't load package: package github.com/kasey/grpc-example/server: cannot find package "github.com/kasey/grpc-example/server" in any of:
    /usr/local/go/src/github.com/kasey/grpc-example/server (from $GOROOT)
    /go/src/github.com/kasey/grpc-example/server (from $GOPATH)
can't load package: package github.com/kasey/grpc-example/client: cannot find package "github.com/kasey/grpc-example/client" in any of:
    /usr/local/go/src/github.com/kasey/grpc-example/client (from $GOROOT)
    /go/src/github.com/kasey/grpc-example/client (from $GOPATH)
/go/src/github.com/gengo/grpc-gateway/third_party/googleapis: warning: directory does not exist.
google/api/annotations.proto: File not found.
proto/echo.proto: Import "google/api/annotations.proto" was not found or had errors.
touch: cannot touch '/build/py_proto/proto/__init__.py': No such file or directory
cp: go-bin/echo-server: No such file or directory
Sending build context to Docker daemon 2.048 kB
Step 1 : FROM busybox
 ---> e02e811dd08f
Step 2 : COPY echo-server /bin/echo-server
lstat echo-server: no such file or directory
ECHO_IMAGE=echo:a16d3ba3e7222f7dbd9df50df2eb00f995481154

prestonvanloon avatar Oct 12 '16 02:10 prestonvanloon

To reproduce:

Following quick start guide 1: ./docker-build.sh 2: ./build.sh <- fails

prestonvanloon avatar Oct 12 '16 02:10 prestonvanloon

If I clone this repository to $GOPATH/src/github.com/kasey/grpc-example then the build.sh step works.

But now ./run.sh fails.

./run.sh
Unable to find image 'echo-server:latest' locally
Pulling repository docker.io/library/echo-server
Error: image library/echo-server:latest not found

prestonvanloon avatar Oct 12 '16 20:10 prestonvanloon