File tree Expand file tree Collapse file tree
ingestion/operators/docker Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -75,19 +75,6 @@ WORKDIR ingestion/
7575# Required for Airflow DockerOperator, as we need to run the workflows from a `python main.py` command in the container.
7676COPY ingestion/operators/docker/*.py .
7777
78- # Create a non-root user with a writable home directory.
79- # When the container runs with securityContext runAsUser: 1000 but no
80- # /etc/passwd entry for that UID, Python disables user site-packages.
81- # This causes runtime failures when tools like spacy download models
82- # via pip --user, as the installed packages are invisible to the import
83- # system. Creating the user ensures Python recognises UID 1000 and
84- # enables the standard ~/.local install path.
85- RUN groupadd -g 1000 openmetadata && useradd -m -u 1000 -g 1000 openmetadata
86- RUN chown -R openmetadata:openmetadata /ingestion
87- ENV HOME=/home/openmetadata
88- ENV PATH="/home/openmetadata/.local/bin:${PATH}"
89- USER openmetadata
90-
9178# Disable pip cache dir
9279# https://pip.pypa.io/en/stable/topics/caching/#avoiding-caching
9380ENV PIP_NO_CACHE_DIR=1
Original file line number Diff line number Diff line change @@ -75,19 +75,6 @@ WORKDIR ingestion/
7575# For the dev build, we copy all files
7676COPY ingestion/ .
7777
78- # Create a non-root user with a writable home directory.
79- # When the container runs with securityContext runAsUser: 1000 but no
80- # /etc/passwd entry for that UID, Python disables user site-packages.
81- # This causes runtime failures when tools like spacy download models
82- # via pip --user, as the installed packages are invisible to the import
83- # system. Creating the user ensures Python recognises UID 1000 and
84- # enables the standard ~/.local install path.
85- RUN groupadd -g 1000 openmetadata && useradd -m -u 1000 -g 1000 openmetadata
86- RUN chown -R openmetadata:openmetadata /ingestion
87- ENV HOME=/home/openmetadata
88- ENV PATH="/home/openmetadata/.local/bin:${PATH}"
89- USER openmetadata
90-
9178# Disable pip cache dir
9279# https://pip.pypa.io/en/stable/topics/caching/#avoiding-caching
9380ENV PIP_NO_CACHE_DIR=1
You can’t perform that action at this time.
0 commit comments