Skip to content
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 24 additions & 22 deletions airflow/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,8 @@ RUN microdnf update && \
# Needed to modify the SBOM
jq && \
microdnf clean all && \
rm -rf /var/cache/yum

RUN <<EOF
rm -rf /var/cache/yum && \
bash <<EOF
python${PYTHON} -m venv --system-site-packages /stackable/app

source /stackable/app/bin/activate
Expand Down Expand Up @@ -99,25 +98,28 @@ ENV AIRFLOW_USER_HOME_DIR=/stackable
ENV PATH=$PATH:/bin:$HOME/app/bin
ENV AIRFLOW_HOME=$HOME/airflow

# Update image and install python
RUN <<EOF
microdnf update
microdnf install \
ca-certificates \
cyrus-sasl \
git \
libpq \
openldap \
openldap-clients \
openssh-clients \
openssl-libs \
openssl-pkcs11 \
python${PYTHON} \
socat \
unixODBC
microdnf clean all
rm -rf /var/cache/yum

# Update image and install needed packages
RUN microdnf update && \
microdnf install \
ca-certificates \
cyrus-sasl \
# Needed for the gitsync functionality
git \
libpq \
# Needed for authentication of clients against LDAP servers
openldap \
openldap-clients \
# We need the openssh libs for the gitsync functionality (the clone target could be e.g. [email protected]:org/repo.git)
openssh-clients \
openssl-libs \
openssl-pkcs11 \
# Airflow needs Python
python${PYTHON} \
socat \
unixODBC && \
microdnf clean all && \
rm -rf /var/cache/yum && \
bash <<EOF
# Get the correct `tini` binary for our architecture.
# It is used as an init alternative in the entrypoint
curl -o /usr/bin/tini "https://repo.stackable.tech/repository/packages/tini/tini-${TINI}-${TARGETARCH}"
Expand Down
Loading