-
Notifications
You must be signed in to change notification settings - Fork 813
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
Cloud Build script for each Example Image #3281
Comments
@Kalaiselvi84 WDYT? We've been doing a bunch of example image updates recently, figured for future endeavours this would make things easier. |
@markmandel, I'm a little confused about the requirement here, sorry. Just to clarify, we are using the 'local-includes' directory to provide the REGISTRY information specific to our own project, right |
Sorry I meant in each agones/examples/xonotic/Makefile Line 26 in 4c07151
So by default this should be "" so that if built locally it would be "xonotic-example:1.1" , then we could overwrite REPOSITORY when submitting through Cloud Build. Does that make sense? |
Could you kindly confirm if the below sample code represents the expected behavior? Makefile:
examples/cloudbuild.yaml:
|
Yep - that looks like a good direction 👍🏻 |
Notes from today's meeting:
|
Reopening, since not yet complete. |
This fixes a bug in the CPP SDK, that was highlighted in the CPP example, but didn't end show up in the conformance tests, as well as several quality of life improvements. * Bring all the gRPC references to our current gRPC version in the project. * Add `-j$(nproc)` for all `build` targets to utlise more cores when compiling. Shaved some time off compilation. * Make the setup and compilation of the example align with the unit tests (where it makes sense) - so same base image, etc. * Explicitly compile the Abseil dependency (this was the critical issue!) Not quite sure if there is a good way to force this kind of issue to show up in the conformance tests, given that we rely on gRPC to be installed on the base image all SDK images are derived from -- but at least this gets us over the current hurdle. Work on googleforgames#3281
* Bugs and Improvements for CPP SDK and Example This fixes a bug in the CPP SDK, that was highlighted in the CPP example, but didn't end show up in the conformance tests, as well as several quality of life improvements. * Bring all the gRPC references to our current gRPC version in the project. * Add `-j$(nproc)` for all `build` targets to utlise more cores when compiling. Shaved some time off compilation. * Make the setup and compilation of the example align with the unit tests (where it makes sense) - so same base image, etc. * Explicitly compile the Abseil dependency (this was the critical issue!) Not quite sure if there is a good way to force this kind of issue to show up in the conformance tests, given that we rely on gRPC to be installed on the base image all SDK images are derived from -- but at least this gets us over the current hurdle. Work on #3281
script for |
Is your feature request related to a problem? Please describe.
Whenever there is an example image to update, our current process is to build locally and then pushed to production. This has a few inherent issues:
Describe the solution you'd like
make push
(maybe update the name?) to instead submit a cloudbuild.yaml that will run the Makefile, to build the image with the details of the project it is in (sous-docker.pkg.dev/${PROJECT_ID}/examples
) so it pushes the image to that project's repository.Describe alternatives you've considered
Leave this alone, and keep it as is. But gives a consistent experience for managing and pushing images.
Additional context
make push
command.make build
, but it will default to ``gar-check
andecho-image-tag
functionality should stay the same, as those are part of our automated release processes, so they will need to be adjusted with this new update.Examples checklist
(I just copied the directories. If there is no image or it's not possible to do (I'm looking at you
unity-simple
), check as done and move on).The text was updated successfully, but these errors were encountered: