ServiceWeaver / weaver-kube

Run Service Weaver applications on vanilla Kubernetes.
Apache License 2.0
61 stars 19 forks source link

Problem with `weaver-kube deploy weaver.toml` #13

Closed batazor closed 1 year ago

batazor commented 1 year ago

I'm having trouble building the image:

{"stream":"Step 5/8 : RUN GOPATH=/weaver/ go install github.com/ServiceWeaver/weaver-kube/cmd/weaver-kube@latest"}
{"stream":"\n"}
{"stream":" ---\u003e Running in 04477ad932c6\n"}
{"stream":"\u001b[91mgo: github.com/ServiceWeaver/weaver-kube/cmd/weaver-kube@latest: module github.com/ServiceWeaver/weaver-kube/cmd/weaver-kube: Get \"https://proxy.golang.org/github.com/%21service%21weaver/weaver-kube/cmd/weaver-kube/@v/list\": tls: failed to verify certificate: x509: certificate signed by unknown authority\n\u001b[0m"}
{"errorDetail":{"code":1,"message":"The command '/bin/sh -c GOPATH=/weaver/ go install github.com/ServiceWeaver/weaver-kube/cmd/weaver-kube@latest' returned a non-zero code: 1"},"error":"The command '/bin/sh -c GOPATH=/weaver/ go install github.com/ServiceWeaver/weaver-kube/cmd/weaver-kube@latest' returned a non-zero code: 1"}

Uploading Image batazor/weaver-notify-ha:tag031ff6e5 to Docker Hub ...
unable to upload image: Error response from daemon: image "docker.io/batazor/weaver-notify-ha:tag031ff6e5": not found

my weaver.toml:

[serviceweaver]
name = "notify-ha"
binary = "./notify-ha"

[single]
listeners.hello = {address = "localhost:12345"}

[multi]
listeners.hello = {address = "localhost:12345"}

[gke]
regions = ["us-west1"]
listeners.hello = {public_hostname = "hello.example.com"}

[kube]
listeners.hello = {public = true}
rgrandl commented 1 year ago

Will take a look. Thanks for reporting this.

rgrandl commented 1 year ago

Hi @batazor, let us know if #15 doesn't fix the issue for you. Thanks @edigaryev for the fix.

batazor commented 1 year ago

@rgrandl Yes, but I got next problem:

{"status":"Waiting","progressDetail":{},"id":"246d78321c83"}
{"status":"Waiting","progressDetail":{},"id":"246d78321c83"}
{"status":"Pushing","progressDetail":{"current":149946368,"total":239390150},"progress":"[===============================\u003e                   ]  149.9MB/239.4MB","id":"006cb99449ec"}
{"status":"Pushing","progressDetail":{"current":131072000,"total":161357583},"progress":"[========================================\u003e          ]  131.1MB/161.4MB","id":"aee967628648"}
unable to upload image: context deadline exceeded

I also got this error when trying to download the go dependencies, but it worked on the second attempt, but on the push we no longer have time.