Commit 7d90d16c authored by Abraham, Subil's avatar Abraham, Subil
Browse files

update dockerfiles

parents
Loading
Loading
Loading
Loading
+40 −0
Original line number Diff line number Diff line
FROM quay.io/centos/centos:stream8
#FROM quay.io/nvidia/cuda-ppc64le:11.0.3-cudnn8-devel-centos8

RUN dnf -y install epel-release && dnf -y install fakeroot 
RUN dnf clean all && rm -r /var/cache/dnf  && fakeroot dnf upgrade -y && fakeroot dnf update -y  
RUN fakeroot dnf install -y wget dnf-plugins-core \
	&& fakeroot dnf config-manager --set-enabled powertools \
	&& wget https://developer.download.nvidia.com/compute/cuda/11.0.3/local_installers/cuda-repo-rhel8-11-0-local-11.0.3_450.51.06-1.ppc64le.rpm \
	&& fakeroot rpm -i cuda-repo-rhel8-11-0-local-11.0.3_450.51.06-1.ppc64le.rpm \
	&& fakeroot dnf -y module install nvidia-driver:latest-dkms \
	&& fakeroot dnf -y install cuda \
	&& fakeroot dnf -y install  kernel-devel \
		cuda-command-line-tools-11-0 \
		java-11-openjdk-devel \
		zip unzip \
		python3-devel \
		tzdata \
		gpg \
		glibc-devel \
	&& rm cuda-repo-rhel8-11-0-local-11.0.3_450.51.06-1.ppc64le.rpm \
	&& dnf -y clean all && rm -r /var/cache/dnf

COPY libcudnn8-8.2.0.53-1.cuda11.3.ppc64le.rpm /
COPY libcudnn8-devel-8.2.0.53-1.cuda11.3.ppc64le.rpm  /
RUN rpm -i /libcudnn8-8.2.0.53-1.cuda11.3.ppc64le.rpm \
	&& rpm -i /libcudnn8-devel-8.2.0.53-1.cuda11.3.ppc64le.rpm \
	&& rm /libcudnn8-8.2.0.53-1.cuda11.3.ppc64le.rpm /libcudnn8-devel-8.2.0.53-1.cuda11.3.ppc64le.rpm

#	&& dnf -y install tar wget git openssh 

ENV LD_LIBRARY_PATH=/usr/local/cuda/lib64:/usr/local/cuda/compat:/usr/local/cuda/lib64/stubs:$LD_LIBRARY_PATH
ENV PATH=/usr/local/cuda-11.0/bin:$PATH
ENV CUDA_HOME="/usr/local/cuda"
ENV CUDA_ROOT="/usr/local/cuda"
ENV CPATH="/usr/local/cuda/include:$CPATH"
ENV CUDNN_ROOT="/usr"
ENV CUDNN_INCLUDE_DIR="${CUDNN_ROOT}/include"
ENV CUDNN_LIB_DIR="${CUDNN_ROOT}/lib64"

ENTRYPOINT ["/bin/bash"]
+1 −0
Original line number Diff line number Diff line
This image needs to be built somewhere where you have sudo or subuid/subgid mappings present
+5 −0
Original line number Diff line number Diff line
#!/bin/bash

# TODO: the -t should be code.ornl.gov/baseimages/baseimage-centos-cuda
env TMPDIR=/projects/tmp podman build -v /projects/tmp:/tmp --ulimit nofile=262144:262144 -f Dockerfile -t code.ornl.gov:4567/76a/olcfbaseimages/baseimage-centos-cuda:latest .
podman push code.ornl.gov:4567/76a/olcfbaseimages/baseimage-centos-cuda:latest
+13 −0
Original line number Diff line number Diff line
#!/bin/bash
   
set -e

module purge
module load DefApps
module load  gcc/9.1.0
 
module -t list
 
 
podman build -f Dockerfile -t code.ornl.gov:4567/76a/olcfbaseimages/baseimage-centos-cuda:latest .
podman push code.ornl.gov:4567/76a/olcfbaseimages/baseimage-centos-cuda:latest
+484 MiB

File added.

No diff preview for this file type.