-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding cofide-sdk demo example #3
Conversation
docker build -f ./workloads/ping-pong/client/Dockerfile.client -t cofide-demo-ping-pong-client . | ||
|
||
build-cofide-sdk: | ||
CGO_ENABLED=0 go build -o bin/cofide-sdk/server ./workloads/cofide-sdk/server/main.go |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would be great if we could use ko for builds of Go applications. It's super convenient to use and builds lean container images. I use it locally but I'd recommend we use it more widely.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added in #5
build: | ||
just build-ping-pong | ||
just build-cofide-sdk |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use Just dependencies?
build: | |
just build-ping-pong | |
just build-cofide-sdk | |
build: build-ping-pong build-cofide-sdk |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added in #5
ctx, cancel := context.WithTimeout(ctx, 30*time.Second) | ||
defer cancel() | ||
|
||
client := cofide_http.NewClient( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we use WithSVIDMatch on the client to match the server's SVID?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also added in #5
I've addressed Mark's feedback and added some additional capability in #5. The PR builds on this one so I think we can probably safe close this. |
cofide-sdk-go
slot in replacement for Go's HTTP server,cofide_http
go.mod
/bin
and copy binaries to Docker images (required due to local import of../cofide-sdk-go
)