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

infra: build: build_project: set entrypoint explicitly in compile step #13030

Closed
wants to merge 2 commits into from

Conversation

DavidKorczynski
Copy link
Collaborator

Follow same pattern as

'entrypoint':
'/bin/bash',
'args': [
'-c',

This should also solve a problem with Chronos where the entrypoint is set to bin/bash already:

docker container commit -c "ENV ENTRYPOINT=/bin/sh" -c "ENV REPLAY_ENABLED=1" ${_PROJECT}-origin-${_SANITIZER} $FINAL_IMAGE_NAME

Chronos needs to set it in order for the images to work locally with helper.py.

Alternatively, we could set entrypoint in helper.py, I think

Follow same pattern as https://github.com/google/oss-fuzz/blob/2772bd6f5d11a44d068b86b8ce7732ab9aff6eb2/infra/build/functions/target_experiment.py#L151-L154

This should also solve a problem with Chronos where the entrypoint is set to `bin/bash` already: https://github.com/google/oss-fuzz/blob/2772bd6f5d11a44d068b86b8ce7732ab9aff6eb2/infra/experimental/chronos/build_cache_local.sh#L59

Chronos needs to set it in order for the images to work locally with `helper.py`.

Alternatively, we could set entrypoint in `helper.py`, I think
@DavidKorczynski
Copy link
Collaborator Author

I think I have a better solution

@DavidKorczynski DavidKorczynski marked this pull request as draft February 12, 2025 23:56
@DavidKorczynski
Copy link
Collaborator Author

superseded by #13031

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.

1 participant