-
Notifications
You must be signed in to change notification settings - Fork 610
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
[universal] - Issue universal config change for non-root default codespace user and installing google chrome browser reuse sandbox to run puppeteer cli in universal image #1287
[universal] - Issue universal config change for non-root default codespace user and installing google chrome browser reuse sandbox to run puppeteer cli in universal image #1287
Conversation
Hi @ddoyle2017 , Tested another workaround for this instead of forcing the UID 1001 as that was increasing the size of the image considerably.
Would you kindly review the same. Please let me know in case of any concern. With Regards, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Almost there! Can we revert the puppeteer --no-sandbox
changes and rerun the Actions?
Hi @ddoyle2017 , I have tested one fix for the puppeteer cli issue. Uploaded the fix. Would you kindly review the same & let me know in case of any concern. PFB the details:
With Regards, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is a reasonable work around for the Puppeteer issues with Ubuntu 24.04! Can you add a comment above both your changes to explain what issue they're solving?
hey @Kaniska244, so @eljog and I had a discussion about how to move forward with the release and I think we need to reorganize your changes for Puppeteer. Currently, your Chrome workaround works for our CI test, but Puppeteer will still be broken for users of this image. We should apply your updates to the image as a whole (not just in |
…al image and setting postCreateCommand instead of postStartCommand.
Hi @ddoyle2017 , I have made the changes according to the comments & all tests are fine with this. Would you kindly review the latest change.
With Regards, |
…es/images directory doesn't exist.
Hi @ddoyle2017 , Hi @eljog , I have made further changes on the solution of the UID issue after consulting with @Mathiyarasy in order to achieve more clean, error-proof solution. Would you kindly review the same. PFB the details of the changes:
Please let me know in case of further concerns with this latest change. With Regards, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes look good 🚀 I think this approach makes sense, based on Option 3 of Chromium's recommended AppArmor workarounds
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left a few questions.
…ng the size check test.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great, thanks!
Ref: https://github.com/devcontainers/internal/issues/247
https://github.com/devcontainers/internal/issues/249
Dev container name:
Universal
Description:
We can determine UID of host machine via id -u & id -g and pass it to docker while building the image. Modified devcontainer.json as below resolved the issue.
Changelog:
For Universal UID permission issue
For puppeteer library issue
Checklist: