-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: QPod0 <QPod0@[email protected]>
- Loading branch information
Showing
1 changed file
with
16 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |