datahub/docker/snippets/ingestion_base.template
2025-04-11 14:57:49 -07:00

38 lines
925 B
Plaintext

# This is the "base" image workflow.
# While it has a bunch of intermediate stages, it "exports" a couple
# stages for consumption.
# - python-base: A basic stage, with basic deps, Python, and a venv.
# - ingestion-base-slim: Currently the same as base-empty.
# - ingestion-base-full: Adds a JRE and Oracle client.
# INLINE-BEGIN @/docker/snippets/ubuntu_python_base
# INLINE-END
FROM python-base AS ingestion-base-slim
USER 0
RUN apt-get update && apt-get install -y \
python3-ldap \
libldap2-dev \
libsasl2-dev \
libsasl2-modules \
libaio-dev \
libaio1t64 \
libsasl2-modules-gssapi-mit \
krb5-user \
krb5-config \
libkrb5-dev \
librdkafka-dev \
ldap-utils \
unixodbc \
libodbc2 \
&& rm -rf /var/lib/apt/lists/*
USER datahub
FROM ingestion-base-slim AS ingestion-base-full
USER 0
# INLINE-BEGIN @/docker/snippets/ingestion_full_deps
# INLINE-END
USER datahub