Skip to content

Commit

Permalink
[DOP-15023] Remove Kerberos libs from worker image
Browse files Browse the repository at this point in the history
  • Loading branch information
dolfinus committed Apr 15, 2024
1 parent d709976 commit b2f8cd7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 155 deletions.
6 changes: 2 additions & 4 deletions docker/Dockerfile.worker
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ ARG BASE_IMAGE=python:3.11-slim
FROM $BASE_IMAGE AS prod

RUN apt-get update && apt-get install -y \
krb5-user \
libkrb5-dev \
libsasl2-dev \
libsasl2-modules-gssapi-mit \
libsasl2-modules-ldap \
Expand All @@ -26,7 +24,7 @@ WORKDIR /app
COPY ./pyproject.toml ./poetry.lock* /app/

RUN pip install --upgrade pip setuptools wheel packaging
RUN poetry install --no-root --extras "worker kerberos" --without test,docs,dev
RUN poetry install --no-root --extras "worker" --without test,docs,dev

COPY ./syncmaster/ /app/syncmaster/
ENV PYTHONPATH=/app
Expand All @@ -41,5 +39,5 @@ FROM prod as test
ENV CREATE_SPARK_SESSION_FUNCTION=tests.spark.get_worker_spark_session.get_worker_spark_session

# CI runs tests in the worker container, so we need backend dependencies too
RUN poetry install --no-root --extras "worker backend kerberos" --with test --without docs,dev
RUN poetry install --no-root --extras "worker backend" --with test --without docs,dev
RUN sed -i 's/python -m/coverage run -m/g' /app/entrypoint.sh
147 changes: 1 addition & 146 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 0 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ python-jose = {extras = ["cryptography"], version = "^3.3.0"}
python-multipart = "^0.0.9"
celery = "^5.3.3"
onetl = {version = "^0.10.2", extras = ["spark"]}
requests-kerberos = {version = "^0.14.0", optional = true}
psycopg2-binary = {version = "^2.9.7", optional = true }
fastapi = {version = "^0.110.0", optional = true}
uvicorn = {version = "^0.29.0", optional = true }
Expand All @@ -75,10 +74,6 @@ worker = [
"psycopg2-binary",
]

kerberos = [
"requests-kerberos",
]

[tool.poetry.group.test.dependencies]
pandas-stubs = "^2.1.4.231227"
pytest = "^8.1.1"
Expand Down

0 comments on commit b2f8cd7

Please sign in to comment.