https://github.com/feedzai/oracle-jep-miniconda
Docker container with Oracle JDK + JEP + Miniconda
https://github.com/feedzai/oracle-jep-miniconda
Last synced: 4 months ago
JSON representation
Docker container with Oracle JDK + JEP + Miniconda
- Host: GitHub
- URL: https://github.com/feedzai/oracle-jep-miniconda
- Owner: feedzai
- License: gpl-2.0
- Created: 2018-06-10T16:36:50.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2020-10-25T07:45:48.000Z (over 5 years ago)
- Last Synced: 2025-08-16T22:33:42.676Z (10 months ago)
- Language: Dockerfile
- Size: 17.6 KB
- Stars: 0
- Watchers: 1
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# oracle-jep-miniconda
[](https://travis-ci.com/feedzai/oracle-jep-miniconda)
Docker container with the following software installed:
* Oracle JDK 8
* [JEP](https://github.com/ninia/jep)
* [miniconda](https://conda.io/miniconda.html) 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 :$JEP_JAR
```