Skip to content

Commit 192c3f3

Browse files
authored
docs(airflow): Document the need for installed packages (#918)
* docs(airflow): Document the need for installed packages * fix compilation because of comments * Save 2 layers :) * revert layer optimization
1 parent 0e42f0f commit 192c3f3

File tree

1 file changed

+22
-19
lines changed

1 file changed

+22
-19
lines changed

airflow/Dockerfile

Lines changed: 22 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -99,25 +99,28 @@ ENV AIRFLOW_USER_HOME_DIR=/stackable
9999
ENV PATH=$PATH:/bin:$HOME/app/bin
100100
ENV AIRFLOW_HOME=$HOME/airflow
101101

102-
# Update image and install python
103-
RUN <<EOF
104-
microdnf update
105-
microdnf install \
106-
ca-certificates \
107-
cyrus-sasl \
108-
git \
109-
libpq \
110-
openldap \
111-
openldap-clients \
112-
openssh-clients \
113-
openssl-libs \
114-
openssl-pkcs11 \
115-
python${PYTHON} \
116-
socat \
117-
unixODBC
118-
microdnf clean all
119-
rm -rf /var/cache/yum
120-
102+
# Update image and install needed packages
103+
RUN microdnf update && \
104+
microdnf install \
105+
ca-certificates \
106+
cyrus-sasl \
107+
# Needed for the gitsync functionality
108+
git \
109+
libpq \
110+
# Needed for authentication of clients against LDAP servers
111+
openldap \
112+
openldap-clients \
113+
# We need the openssh libs for the gitsync functionality (the clone target could be e.g. [email protected]:org/repo.git)
114+
openssh-clients \
115+
openssl-libs \
116+
openssl-pkcs11 \
117+
# Airflow needs Python
118+
python${PYTHON} \
119+
socat \
120+
unixODBC && \
121+
microdnf clean all && \
122+
rm -rf /var/cache/yum && \
123+
bash <<EOF
121124
# Get the correct `tini` binary for our architecture.
122125
# It is used as an init alternative in the entrypoint
123126
curl -o /usr/bin/tini "https://repo.stackable.tech/repository/packages/tini/tini-${TINI}-${TARGETARCH}"

0 commit comments

Comments
 (0)