Skip to content

Commit c4bed4d

Browse files
committed
Revert "Fix runtime spacy model loading for non-root containers (#26753)"
This reverts commit 5885a24.
1 parent 57280af commit c4bed4d

2 files changed

Lines changed: 0 additions & 26 deletions

File tree

ingestion/operators/docker/Dockerfile

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff 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.
7676
COPY 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
9380
ENV PIP_NO_CACHE_DIR=1

ingestion/operators/docker/Dockerfile.ci

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -75,19 +75,6 @@ WORKDIR ingestion/
7575
# For the dev build, we copy all files
7676
COPY 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
9380
ENV PIP_NO_CACHE_DIR=1

0 commit comments

Comments
 (0)