Commit db78e801 authored by Ryan Berkheimer's avatar Ryan Berkheimer
Browse files

Updated Dockerfile.demo - now working with python3 jupyter notebook.

parent 905ab19f
Pipeline #5986 failed with stage
in 0 seconds
......@@ -8,7 +8,7 @@ FROM registry.access.redhat.com/ubi7/ubi:latest
#Install standard RHEL7 tools
RUN yum -y install --disableplugin=subscription-manager \
rh-python36 vim wget git java-11-openjdk-devel gcc gcc-gfortran gcc-c++ make \
vim wget git java-11-openjdk-devel gcc gcc-gfortran gcc-c++ make \
&& yum --disableplugin=subscription-manager clean all
#Install Java Variables
......@@ -27,6 +27,14 @@ ARG workdir=/home/${user}
RUN useradd ${user}
WORKDIR ${workdir}
#Install python3 via miniconda for jupyter notebook use
RUN wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
RUN chmod 755 miniconda.sh
RUN /bin/bash miniconda.sh -b -p ${workdir}/miniconda
#Install Jupyter Notebook via Conda
RUN cd ${workdir}/miniconda/bin && ./conda install -y jupyter
#Retrieve the installation script to the user's home directory and set permissions for execution
RUN wget https://k3.cicsnc.org/rberkheimer/messageapi/-/raw/mac-develop/scripts/install/package/install_k3.sh?inline=false \
--no-check-certificate -O install_k3.sh
......@@ -39,10 +47,13 @@ USER ${user}
#Set PATH and other user variables in bashrc
RUN cd $(dirname $(readlink -f $(which java))) && cd .. \
&& export JAVA_HOME=$PWD \
&& echo "PATH=${JAVA_HOME}/bin:\$PATH" >> ~/.bashrc \
&& echo "export PATH=${JAVA_HOME}/bin:\$PATH" >> ~/.bashrc \
&& source ~/.bashrc
#Install the Java core plus C/CPP API wrappers from install script
RUN echo "${PWD}"
RUN ./install_k3.sh "C_CPP"
RUN rm install_k3.sh
#Add python vars to path
RUN echo "export PATH=${workdir}/miniconda/bin:\$PATH" >> ~/.bashrc
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment