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

include pyodide in the docker image #1019

Merged
merged 1 commit into from
Jun 5, 2024
Merged

Conversation

paulfitz
Copy link
Member

@paulfitz paulfitz commented Jun 4, 2024

Grist has for some time supported a sandbox based on pyodide. It is a bit slower to start than the gvisor-based sandbox, but can run in situations where it can't. Until now it hasn't been easy to use when running Grist as a container, since the support files weren't included. This change rectifies that omission.

Nothing changes by default. But now if you start Grist as a container and set GRIST_SANDBOX_FLAVOR=pyodide, it should work rather than fail.

Grist has for some time supported a sandbox based on pyodide.
It is a bit slower to start than the gvisor-based sandbox, but
can run in situations where it can't. Until now it hasn't been
easy to use when running Grist as a container, since the support
files weren't included. This change rectifies that omission.

Nothing changes by default. But now if you start Grist as a container
and set `GRIST_SANDBOX_FLAVOR=pyodide`, it should work rather than
fail.
@paulfitz paulfitz marked this pull request as ready for review June 4, 2024 21:17
@fflorent
Copy link
Collaborator

fflorent commented Jun 5, 2024

I have built the image and run it using GRIST_SANDBOX_FLAVOR=pyodide.

It runs, however, the sandboxing does not seem to work:

formula which attempts a sandbox escape

The result which show that the sandbox escape succeeded

It may be a mistake from my side (like something I misconfigured). I take some time to look at this.

Copy link
Collaborator

@fflorent fflorent left a comment

Choose a reason for hiding this comment

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

Finally the problem was a misconfiguration of mine, LGTM! :)

@georgegevoian georgegevoian self-requested a review June 5, 2024 18:13
Copy link
Contributor

@georgegevoian georgegevoian left a comment

Choose a reason for hiding this comment

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

Working for me as well. Thanks @paulfitz!

@paulfitz paulfitz merged commit 4358ff8 into main Jun 5, 2024
13 checks passed
@paulfitz paulfitz deleted the paulfitz/pyodide-in-image branch June 5, 2024 18:29
hexaltation pushed a commit to hexaltation/grist-core that referenced this pull request Jun 12, 2024
Grist has for some time supported a sandbox based on pyodide.
It is a bit slower to start than the gvisor-based sandbox, but
can run in situations where it can't. Until now it hasn't been
easy to use when running Grist as a container, since the support
files weren't included. This change rectifies that omission.

Nothing changes by default. But now if you start Grist as a container
and set `GRIST_SANDBOX_FLAVOR=pyodide`, it should work rather than
fail.
CamilleLegeron pushed a commit to incubateur-territoires/grist-core that referenced this pull request Jun 20, 2024
Grist has for some time supported a sandbox based on pyodide.
It is a bit slower to start than the gvisor-based sandbox, but
can run in situations where it can't. Until now it hasn't been
easy to use when running Grist as a container, since the support
files weren't included. This change rectifies that omission.

Nothing changes by default. But now if you start Grist as a container
and set `GRIST_SANDBOX_FLAVOR=pyodide`, it should work rather than
fail.
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.

None yet

3 participants