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

Fix Dockerfile rewrite for using cached builds. #699

Merged
merged 2 commits into from
Nov 7, 2024
Merged

Conversation

oliverchang
Copy link
Collaborator

@oliverchang oliverchang commented Nov 7, 2024

We weren't keeping the ARG, WORKDIR lines.

ARG is necessary for obvious reasons since we are relying on injecting
the base image at runtime.

WORKDIR is required for: https://github.com/google/oss-fuzz/blob/edfa6730fa9f1dca77dd27c0b3a643171e082950/infra/build/functions/build_project.py#L229

@oliverchang
Copy link
Collaborator Author

/gcbun exp -n ochang-test

@oliverchang
Copy link
Collaborator Author

/gcbrun exp -n ochang-test

We weren't keeping the ARG, WORKDIR lines.

ARG is necessary for obvious reasons since we are relying on injecting
the base image at runtime.

WORKDIR is required for: https://github.com/google/oss-fuzz/blob/edfa6730fa9f1dca77dd27c0b3a643171e082950/infra/build/functions/build_project.py#L229
@oliverchang
Copy link
Collaborator Author

/gcbrun exp -n ochang-test

@DonggeLiu
Copy link
Collaborator

@oliverchang
Copy link
Collaborator Author

I think this works, but there needs to be another change to the oss-fuzz build infra side to use the cached coverage image as well. I'll do that in a followup.

@oliverchang oliverchang merged commit ccbeb65 into main Nov 7, 2024
6 checks passed
@oliverchang oliverchang deleted the fix-cloud-cached branch November 7, 2024 02:10
Copy link
Collaborator

@DavidKorczynski DavidKorczynski left a comment

Choose a reason for hiding this comment

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

LGTM

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