Skip to content

Commit

Permalink
Pyflink: use python 3.8 (#2)
Browse files Browse the repository at this point in the history
Co-authored-by: QPod0 <QPod0@[email protected]>
  • Loading branch information
haobibo and QPod0 authored Oct 11, 2022
1 parent 6a564b2 commit 91e10cd
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions docker_pyflink/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,19 +1,29 @@
# Distributed under the terms of the Modified BSD License.

ARG BASE_NAMESPACE
ARG BASE_IMG="base"
ARG BASE_IMG="atom"
FROM ${BASE_NAMESPACE:+$BASE_NAMESPACE/}${BASE_IMG}

LABEL maintainer="[email protected]"

ENV JAVA_HOME=/opt/jdk

COPY work /opt/utils/

ENV CONDA_PREFIX=/opt/conda/ \
JAVA_HOME=/opt/jdk \
PATH=/opt/conda/bin:/opt/jkd/bin:$PATH

RUN source /opt/utils/script-setup.sh \
# && apt-get -qq update -yq --fix-missing && apt-get -qq install -yq --no-install-recommends openjdk-11-jdk-headless
&& install_apt /opt/utils/install_list_base.apt \
&& echo "Install tini" \
&& setup_tini \
&& echo "Install Mamba, Python 3.8, and Conda:" \
&& mkdir -pv ${CONDA_PREFIX} \
&& setup_mamba && setup_conda_with_mamba "3.8" && install__clean \
&& ln -sf /opt/conda/bin/python3 /usr/bin/python \
&& echo "Install JDK:" \
&& setup_java_base && export JAVA_HOME="/opt/jdk" \
# manually fix pyflink dependencies
&& echo "Install pyflink: manually fix pyflink dependencies" \
&& install_pip /opt/utils/list_install_pip_pyflink.txt \
&& pip install -U --no-deps apache-flink-libraries apache-flink \
&& install__clean && list_installed_packages
&& echo "Clean up" \
&& list_installed_packages && install__clean

0 comments on commit 91e10cd

Please sign in to comment.