Skip to content
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

Save docker images for C/C++ #12831

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Save docker images for C/C++ #12831

wants to merge 5 commits into from

Conversation

jonathanmetzman
Copy link
Contributor

@jonathanmetzman jonathanmetzman commented Dec 11, 2024

So that bugs can reproduced.

These should not be used if security is a concern!
I maybe will put the word unsafe in the name

@jonathanmetzman
Copy link
Contributor Author

/gcbrun skip

steps.append(docker_build_arm_step)

if (not experiment and not config.testing and
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to add push as an explicit step? Is it simpler to just add this to https://cloud.google.com/build/docs/build-config-file-schema#images ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I recall max removing this step because it failed. I think this way is more performant (it runs in the background) and error-tolerant, but I'd understand if you want the simplicity instead.
I do think all of this builder code may be getting too complicated, too many special cases.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I recall max removing this step because it failed. I think this way is more performant (it runs in the background) and error-tolerant, but I'd understand if you want the simplicity instead.
I do think all of this builder code may be getting too complicated, too many special cases.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, simplifcity is my main motivation -- this is getting way too complicated.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it. I think the failure is problematic though because it can lead to issues filed against users.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's been a while so hopefully this is handled better by Cloud Build now. But yeah, good point. If we run into this again your solution is probably the more practical one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants