Comments (5)
paging @Spoffy given upcoming #1031
from grist-core.
Hey @josh-hemphill! Am I right in thinking you're running the docker image under podman here?
Could you try running this branch spoffy/run-docker-as-non-root and seeing if it works for you?
It should handle rootless better, although there's no guarantee as I haven't tested it under podman!
from grist-core.
Ah, I figured it out, I had added the --userns=keep-id
flag to my containers, so it didn't have root permissions.
from grist-core.
I've seen other projects (like gitea) distribute separate docker containers that have the changes to UID/GID set up by default so you just have to use a different tag. Is that something a PR might be accepted for?
from grist-core.
@Spoffy It seems to be running fine. I've been migrating my Compose files to kube.yaml files, and using podman kube play
to create each of my apps' containers inside a pod. (the kube.yaml files were not as verbose as I thought, pretty comparable to the Compose files, hence why I'm switching)
This is how I'm running it:
apiVersion: v1
kind: Pod
metadata:
name: podgrist
annotations:
io.podman.annotations.userns: keep-id
spec:
containers:
- args:
- ./sandbox/run.sh
env:
- name: GRIST_SESSION_SECRET
value: "some secret"
- name: GRIST_SANDBOX_FLAVOR
value: gvisor
- name: APP_HOME_URL
value: "https://example.com"
- name: GRIST_DOCKER_USER
value: "1000"
- name: GRIST_DOCKER_GROUP
value: "1000"
securityContext:
runAsUser: 1000
runAsGroup: 1000
image: localhost/grist-test
name: grist
ports:
- containerPort: 8484
hostPort: 33668
tty: true
volumeMounts:
- mountPath: /persist
name: hosting-grist-data-host-0
hostname: "example.com"
volumes:
- hostPath:
path: "./data"
type: Directory
name: hosting-grist-data-host-0
And running it with: podman kube play --replace --no-hosts --userns=keep-id --start=false --annotation hosting=services ./kube.yaml
Although the only reason I have to specify --userns=keep-id
is because I have to use the last major version of Podman that doesn't respect annotations: io.podman.annotations.userns: keep-id
, because the latest version doesn't support Ubuntu 22.04
from grist-core.
Related Issues (20)
- [Graph widget] Wrong axis targeted for log-scale in horizontal orientation
- Define a list and default colors for tags
- Automatically prune history of a document HOT 4
- Move history actions to an external storage (instead of storing in docs)
- Add support for autocomplete/suggestions for Text columns
- Issues and PR templates
- Expose the action and the user that triggered a trigger formula
- Filtered Reference Column not showing all rows in dropdown
- Lists of RecordSets cannot be typed as Reference List HOT 1
- New setup [pyodide sandbox] = warn: Sandbox sending SIGKILL HOT 4
- User deletion API: confirm by giving user's email rather than by their name?
- Clean up code to handle enterprise toggle
- Provide UI for entering an activation key
- The enterprise toggle should be disabled for the grist-oss and grist-ee images HOT 1
- add tests for the enterprise toggle widget
- Trial period when enterprise is enabled should count from the moment enterprise was enabled, not when Grist was installed
- In Forms, selecting a reference from a long list (1000+) is not working HOT 1
- Is it possible to move focus to the column options with the keyboard? HOT 1
- Dark mode overrides choice text color
- Opening of .grist impossible Error: EPERM HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grist-core.