ardanlabs / service

Starter-kit for writing services in Go using Kubernetes.
https://www.ardanlabs.com
Apache License 2.0
3.43k stars 619 forks source link

Add makefile dev commands for Service Weaver. #308

Closed spetrovic77 closed 9 months ago

spetrovic77 commented 9 months ago

In particular, add commands to create a local Kind cluster, set it up with a database, and deploy the service to it.

TODO: Add commands to access the endpoints inside the Kind cluster.

ardan-bkennedy commented 9 months ago

Sorry I have been out. I will run through this tomorrow and if everything works I will merge it. THANKS!

ardan-bkennedy commented 9 months ago

I don't understand how this works?

wea-dev-build:
cd app/weaver/sales-api; GOOS=linux GOARCH=amd64 go build .
kind load docker-image $(SERVICE_IMAGE) --name $(KIND_CLUSTER)

Don't I need to build an image for the weaver build?