From eaef3cec6aa1b57102ae10c7fc83cfdd3cad64fc Mon Sep 17 00:00:00 2001 From: Larry Zhu Date: Sat, 11 Jan 2020 15:58:39 -0800 Subject: [PATCH 1/2] add elasticsearch python modules in order to write logs to elastic search --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index ba709a84..2ae99cfa 100644 --- a/Dockerfile +++ b/Dockerfile @@ -58,6 +58,8 @@ RUN set -ex \ && pip install pyasn1 \ && pip install apache-airflow[crypto,celery,postgres,hive,jdbc,mysql,ssh${AIRFLOW_DEPS:+,}${AIRFLOW_DEPS}]==${AIRFLOW_VERSION} \ && pip install 'redis==3.2' \ + && pip install elasticsearch \ + && pip install elasticsearch_dsl \ && if [ -n "${PYTHON_DEPS}" ]; then pip install ${PYTHON_DEPS}; fi \ && apt-get purge --auto-remove -yqq $buildDeps \ && apt-get autoremove -yqq --purge \ @@ -72,7 +74,6 @@ RUN set -ex \ COPY script/entrypoint.sh /entrypoint.sh COPY config/airflow.cfg ${AIRFLOW_USER_HOME}/airflow.cfg - RUN chown -R airflow: ${AIRFLOW_USER_HOME} EXPOSE 8080 5555 8793 From 4e993b3162c7e2d7f70e9aeb964666b12c40055a Mon Sep 17 00:00:00 2001 From: Larry Zhu Date: Sat, 11 Jan 2020 16:00:20 -0800 Subject: [PATCH 2/2] add back the blank line --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index 2ae99cfa..675771ea 100644 --- a/Dockerfile +++ b/Dockerfile @@ -74,6 +74,7 @@ RUN set -ex \ COPY script/entrypoint.sh /entrypoint.sh COPY config/airflow.cfg ${AIRFLOW_USER_HOME}/airflow.cfg + RUN chown -R airflow: ${AIRFLOW_USER_HOME} EXPOSE 8080 5555 8793