mirror of
https://github.com/gristlabs/grist-core.git
synced 2024-09-28 20:10:46 +00:00
This adds a new `GRIST_SANDBOX_FLAVOR=pyodide` option where the version of Python used for the data engine is wasm, and so can be run by node like the rest of the back end. It still runs as a separate process. There are a few small version changes made to packages to avoid various awkwardnesses present in the current versions. All existing tests pass. This is very experimental. To use, you'll need something with a bash shell and make. First do: ``` cd sandbox/pyodide make setup # README.md and Makefile have details cd .. ``` Then running Grist as: ``` GRIST_SANDBOX_FLAVOR=pyodide yarn start ``` should work. Adding a formula with content: ``` import sys; return sys.version ``` should return a different Python version than other sandboxes. The motivation for this work is to have a form of sandboxing that will work on Windows for Grist Electron (for Linux we have gvisor/runsc, for Mac we have sandbox-exec, but I haven't found anything comparable for Windows). It also brings a back-end-free version of Grist a bit closer, for use-cases where that would make sense - such as serving a report (in the form of a Grist document) on a static site.
17 lines
196 B
Plaintext
17 lines
196 B
Plaintext
# explicitly list the files needed by docker.
|
|
*
|
|
!package.json
|
|
!yarn.lock
|
|
!tsconfig.json
|
|
!tsconfig-ext.json
|
|
!stubs
|
|
!app
|
|
!buildtools
|
|
!static
|
|
!bower_components
|
|
!sandbox
|
|
!plugins
|
|
!test
|
|
!ext
|
|
**/_build
|