Skip to content

Commit

Permalink
Update Docker file to use conda for x86_64 and pip in ppc64le to crea…
Browse files Browse the repository at this point in the history
…te runtime #680
  • Loading branch information
hemenkapadia committed Oct 1, 2018
1 parent 866c611 commit f14a0b0
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions Dockerfile-runtime
Original file line number Diff line number Diff line change
Expand Up @@ -73,15 +73,17 @@ WORKDIR /
# Add requirements
COPY src/interface_py/requirements_runtime.txt requirements.txt
COPY src/interface_py/requirements_runtime_demos.txt requirements_runtime_demos.txt
# No pip install, h2o4gpu and dependencies will be created via conda install from poboys
#RUN \
# chmod a+rwx requirements*.txt && \
# pip install --no-cache-dir -r requirements.txt && \
# pip install --no-cache-dir -r requirements_runtime_demos.txt
RUN conda create -n h2o4gpuenv -y -c h2oai -c conda-forge h2o4gpu$cudaversion && \
RUN bash -c 'if [ `arch` == "ppc64le" ]; then \
chmod a+rwx requirements*.txt && \
pip install --no-cache-dir -r requirements.txt && \
pip install --no-cache-dir -r requirements_runtime_demos.txt
fi'

RUN bash -c 'if [ `arch` == "x86_64" ]; then \
conda create -n h2o4gpuenv -y -c h2oai -c conda-forge h2o4gpu$cudaversion && \
source activate h2o4gpuenv && \
conda install -y tornado==4.5.3

fi '

RUN mkdir -p /etc/OpenCL/vendors && \
echo "libnvidia-opencl.so.1" > /etc/OpenCL/vendors/nvidia.icd
Expand Down

0 comments on commit f14a0b0

Please sign in to comment.