elementary icon indicating copy to clipboard operation
elementary copied to clipboard

[ELE-188] Docker image requires `root` in order to run `edr`.

Open elongl opened this issue 2 years ago • 2 comments

Is your feature request related to a problem? Please describe. Currently, the Docker image installs elementary-data under the root user. This means that the Python package is installed to site-packages with a file hierarchy that is owned by root. Whenever a container of the image is run with a lower-privileged user, it'll error because it'll attempt to write files to the internal dbt project within the package, for instance logs/dbt.log.

Describe the solution you'd like The Docker image should support running with a lower-privileged user. It could either be by building the image with a non-root user, or changing the package's tree to +rwx. We should consider if maybe there's a better solution, haven't fully thought this through at the moment.

Additional context Here's the Slack thread.

ELE-188

elongl avatar Jan 18 '23 09:01 elongl

This is not actively worked on correct? Unfortunately I cannot contribute in this area

esenilsson avatar Feb 06 '23 13:02 esenilsson

This image is not yet resolved because edr still installs the dbt_packages under site-packages which is owned by root.

elongl avatar Feb 23 '23 15:02 elongl