elementary-data / elementary

The dbt-native data observability solution for data & analytics engineers. Monitor your data pipelines in minutes. Available as self-hosted or cloud service with premium features.
https://www.elementary-data.com/
Apache License 2.0
1.89k stars 159 forks source link

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

Open elongl opened 1 year ago

elongl commented 1 year ago

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

esenilsson commented 1 year ago

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

elongl commented 1 year ago

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