From 272823a1ebbc0ce4e1472577d2ed688a9f9144a9 Mon Sep 17 00:00:00 2001 From: Harshal Sheth Date: Thu, 15 Aug 2024 16:24:23 -0400 Subject: [PATCH] feat(ingest): add python deps for `apk` Will help us support Alpine images in the future. --- docker/datahub-ingestion-base/Dockerfile | 2 +- metadata-ingestion/scripts/install_deps.sh | 8 +++++++- smoke-test/smoke.sh | 2 +- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/docker/datahub-ingestion-base/Dockerfile b/docker/datahub-ingestion-base/Dockerfile index a2686ee8b6557..5ff65aea798fa 100644 --- a/docker/datahub-ingestion-base/Dockerfile +++ b/docker/datahub-ingestion-base/Dockerfile @@ -38,7 +38,7 @@ RUN apt-get update && apt-get install -y -qq \ ldap-utils \ unixodbc \ libodbc2 \ - && python -m pip install --no-cache --upgrade pip uv>=0.1.10 wheel setuptools \ + && python -m pip install --no-cache --upgrade pip 'uv>=0.1.10' wheel setuptools \ && rm -rf /var/lib/apt/lists/* /var/cache/apk/* COPY --from=dockerize-binary /usr/local/bin/dockerize /usr/local/bin diff --git a/metadata-ingestion/scripts/install_deps.sh b/metadata-ingestion/scripts/install_deps.sh index 80a07cb04cb44..bdc47f275742f 100755 --- a/metadata-ingestion/scripts/install_deps.sh +++ b/metadata-ingestion/scripts/install_deps.sh @@ -19,7 +19,13 @@ else xz-devel \ libxml2-devel \ libxslt-devel \ - krb5-devel + krb5-devel + elif command -v apk; then + $sudo_cmd apk add \ + build-base \ + openldap-dev \ + xz-dev \ + krb5-dev else $sudo_cmd apt-get update && $sudo_cmd apt-get install -y \ python3-ldap \ diff --git a/smoke-test/smoke.sh b/smoke-test/smoke.sh index 5b3e8a9377a6c..d74f77a4e624a 100755 --- a/smoke-test/smoke.sh +++ b/smoke-test/smoke.sh @@ -23,7 +23,7 @@ else python3 -m venv venv source venv/bin/activate - python -m pip install --upgrade pip uv>=0.1.10 wheel setuptools + python -m pip install --upgrade pip 'uv>=0.1.10' wheel setuptools uv pip install -r requirements.txt fi