gristlabs_grist-core/sandbox
Spoffy a8431c69a7
Makes docker images default to non-root execution (#1031)
De-escalates to a normal user when the docker image is run as root.

Allows GRIST_DOCKER_USER and GRIST_DOCKER_GROUP to be passed to override the default de-escalation behaviour.

Backwards compatible with previous root installations.

--------

This change adds a new docker_entrypoint.sh, which when run as root de-escalates to the provided user, defaulting to grist:grist. This is similar to the approach used by the official postgres docker image.

To achieve backwards compatibility, it changes ownership of any files in `/persist` to the user it's given at runtime. Since the docker container is typically run as root, this should always work.

If the container is run as a standard user from the very start:
* It's the admin's responsibility to ensure `/persist` is writable by that user.
* `/grist` remains owned by root and is read-only.
2024-06-27 14:24:32 +01:00
..
docker (core) Upgrade to Python 3.11 2023-08-04 18:19:40 +02:00
grist (core) Update documentation of certain functions 2024-06-14 09:52:23 -04:00
gvisor Check gvisor on startup of run.sh, and clean up scripts related to gvisor flags (#760) 2023-11-27 16:20:43 -05:00
pyodide fix shebang in various bash scripts (#910) 2024-03-25 09:55:20 -04:00
bundle_as_wheel.sh fix shebang in various bash scripts (#910) 2024-03-25 09:55:20 -04:00
docker_entrypoint.sh Makes docker images default to non-root execution (#1031) 2024-06-27 14:24:32 +01:00
gen_js_schema.py add a script for copying schema information from python to typescript 2023-01-17 15:54:41 -05:00
install_tz.js (core) apply some dependabot suggestions 2022-09-07 14:15:34 -04:00
MANIFEST.in support other SQLite wrappers, and various hooks needed by grist-static (#516) 2023-05-23 15:17:28 -04:00
requirements3.in (core) Upgrade to Python 3.11 2023-08-04 18:19:40 +02:00
requirements3.txt (core) Fix updating attributes inside f-strings when columns are renamed 2023-09-11 14:41:30 +02:00
requirements.txt (core) Fix updating attributes inside f-strings when columns are renamed 2023-09-11 14:41:30 +02:00
run.sh Fix docker graceful shutdown (#830) 2024-01-30 10:00:59 -05:00
setup.py support other SQLite wrappers, and various hooks needed by grist-static (#516) 2023-05-23 15:17:28 -04:00
supervisor.mjs supervisor: new file 2024-06-19 11:56:45 -04:00
watch.sh reconcile boot and admin pages further (#963) 2024-05-23 16:40:31 -04:00