-
Notifications
You must be signed in to change notification settings - Fork 7
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
feat: dummy sync server #53
Conversation
Signed-off-by: Todd Baert <[email protected]>
Signed-off-by: Todd Baert <[email protected]>
Co-authored-by: Kavindu Dodanduwa <[email protected]> Signed-off-by: Todd Baert <[email protected]>
Signed-off-by: Todd Baert <[email protected]>
064b6dc
to
6dd7ad1
Compare
Signed-off-by: Todd Baert <[email protected]>
Signed-off-by: Todd Baert <[email protected]>
Signed-off-by: Todd Baert <[email protected]>
Signed-off-by: Todd Baert <[email protected]>
Signed-off-by: Todd Baert <[email protected]>
sync/Dockerfile
Outdated
@@ -0,0 +1,8 @@ | |||
FROM busybox:1.36 | |||
|
|||
COPY sync/bin/* . |
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.
Personally, I prefer a standalone docker file. here this depends on the MakeFile 🤔
Can we first build the binary and then extract that from a staged docker build ?
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.
Ya good call. I'll make that change
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.
I've done this: 841449b
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.
I am happy with the dockerfile. Could you also check ci.yaml
1
Footnotes
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.
I've removed the go building from the ci.
Overal looks good 👍 |
Signed-off-by: Todd Baert <[email protected]>
Signed-off-by: Todd Baert <[email protected]>
Signed-off-by: Todd Baert <[email protected]>
Stub for mocking a sync server.
You can test it easily like this:
go run main.go -f ../flags1.json -f ../flags2.json
then:
grpcurl -import-path '/home/{user}/Downloads' -proto sync.proto -plaintext localhost:9090 sync.v1.FlagSyncService/FetchAllFlags
(assuming you have
sync.proto
in your downloads)You can also do
sync.v1.FlagSyncService/SyncFlags
which will open a stream that sends the merged payload anytime you change one of the files.