Fix sandboxing#26995
Conversation
|
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request resolves an issue where the gemini-cli failed to start in sandboxed mode due to conflicting entrypoints in the default docker image. By explicitly overriding the entrypoint, the container can now correctly execute the intended commands. Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize the Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counterproductive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request updates packages/cli/src/utils/sandbox.ts to include the --entrypoint '' flag in the container execution arguments for both the main sandbox and the sandbox proxy. This change ensures that any default entrypoints defined in the container images are overridden, allowing for more controlled execution. No review comments were provided for this pull request, so I have no additional feedback to offer.
|
I'm not quite clear about the license agreement. I've signed it, but it only lists my gmail address (which is the email github has for me) not the other address which is what git commits are tagged with. I had added the alternate address to my google account before signing the agreement so I'm not sure why the bot still says the agreement is not signed. |
|
I've now also force-pushed an amended commit with my personal email address on it and triggered a rescan, but it doesn't seem to have helped. |
Summary
Fixes the docker commandline when launching gemini in sandboxed mode. Addresses #26964.
Details
The default docker image used for sandboxing has an entrypoint set (
gemini) but gemini-cli tries to then usebash -cas the command for the docker container. Sincegemini bash -cisn't a valid command, the container fails to start.Related Issues
Fixes #26964
How to Validate
Pre-Merge Checklist