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

Run ckan and dependencies from a venv, add maintenance user #56

Open
wardi opened this issue May 2, 2024 · 1 comment
Open

Run ckan and dependencies from a venv, add maintenance user #56

wardi opened this issue May 2, 2024 · 1 comment
Assignees

Comments

@wardi
Copy link
Contributor

wardi commented May 2, 2024

This would let us

  • remove warnings on package install about overwriting system-maintained files
  • install dependencies as an unprivileged maintenance user (separate from ckan user) so that admin tasks in the container aren't all done as root (use https://docs.docker.com/reference/dockerfile/#user to set this as the default for docker run use)
  • in development use a volume for complete installed virtualenv including bin and other folders, and one for the maintenance home directory for conveniences like .bash_history

In development we can set up an entrypoint that syncs the maintenance UID and GID inside the container with the ones from the mounted /srv/app/src_extensions folder. This lets us do things like create extensions from templates or edit/create files and directories while VS Code debugging without creating a bunch of root-owned files in the host directory.

@wardi wardi self-assigned this May 2, 2024
@wardi
Copy link
Contributor Author

wardi commented May 2, 2024

maintenance likely isn't the best name for this user, any other suggestions?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

1 participant