Skip to content

feedzai/oracle-jep-miniconda

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

oracle-jep-miniconda

Build Status

Docker container with the following software installed:

  • Oracle JDK 8
  • JEP
  • miniconda with Python3 and the following packages:
    • numpy
    • scipy
    • pandas
    • scikit-learn

Several environment variables are also set up to make it easier for your Java processes to leverage all of this:

ENV CONDA_HOME /root/miniconda3
ENV PATH $CONDA_HOME/bin:$PATH
ENV CONDA_ENVIRONMENT conda-environment
ENV JEP_LOCATION ${CONDA_HOME}/envs/${CONDA_ENVIRONMENT}/lib/python3.6/site-packages/jep
ENV JEP_JAR ${JEP_LOCATION}/jep-3.7.1.jar

# Most software that requires JEP will probably need to point to the dyn libs generated by the command above
ENV LD_LIBRARY_PATH ${JEP_LOCATION}:${LD_LIBRARY_PATH}

# Processes that must see the correct python must add this variable to LD_PRELOAD (i.e. `export LD_PRELOAD=$TO_PRELOAD`)
# We don't do it here since that breaks yum
ENV TO_PRELOAD ${CONDA_HOME}/envs/${CONDA_ENVIRONMENT}/lib/libpython3.6m.so

To run in the correct environment the easiest way is to do:

source activate $CONDA_ENVIRONMENT
export LD_PRELOAD=$TO_PRELOAD
java -cp <your-classpath>:$JEP_JAR <your java command>

About

Docker container with Oracle JDK + JEP + Miniconda

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •