Skip to content
This repository was archived by the owner on Jul 21, 2021. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions r-session-complete/bionic/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,26 @@ RUN curl -O https://drivers.rstudio.org/7C152C12/installer/rstudio-drivers_${DRI

RUN /opt/R/${R_VERSION}/bin/R -e 'install.packages("odbc", repos="https://packagemanager.rstudio.com/cran/__linux__/bionic/latest")'

# Install cuda ----------------------------------------------------------------#

RUN apt-get update -y && \
DEBIAN_FRONTEND=noninteractive apt-get install -y gnupg && \
rm -rf /var/lib/apt/lists/*

RUN curl -o cuda-download.deb -L http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/cuda-repo-ubuntu1804_10.2.89-1_amd64.deb && \
apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/7fa2af80.pub && \
dpkg -i cuda-download.deb && \
apt-get update -y

RUN curl -O http://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64/nvidia-machine-learning-repo-ubuntu1804_1.0.0-1_amd64.deb && \
apt-get update && \
DEBIAN_FRONTEND=noninteractive gdebi --non-interactive nvidia-machine-learning-repo-ubuntu1804_1.0.0-1_amd64.deb && \
rm -rf /var/lib/apt/lists/*

RUN apt-get update -y && \
DEBIAN_FRONTEND=noninteractive apt-get install -y cuda libcudnn7 libcudnn7-dev libnvinfer6 libnvinfer-dev libnvinfer-plugin6 && \
rm -rf /var/lib/apt/lists/*

# Locale configuration --------------------------------------------------------#

RUN apt-get update -y && \
Expand Down
16 changes: 16 additions & 0 deletions r-session-complete/centos7/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,22 @@ RUN curl -O https://drivers.rstudio.org/7C152C12/installer/rstudio-drivers-${DRI

RUN /opt/R/${R_VERSION}/bin/R -e 'install.packages("odbc", repos="https://packagemanager.rstudio.com/cran/__linux__/centos7/latest")'

# Install cuda ----------------------------------------------------------------#

RUN yum update -y && \
yum install -y gnupg && \
yum clean all

RUN yum -y install http://developer.download.nvidia.com/compute/cuda/repos/rhel7/x86_64/cuda-repo-rhel7-10.2.89-1.x86_64.rpm && \
yum clean all

RUN yum -y install http://developer.download.nvidia.com/compute/machine-learning/repos/rhel7/x86_64/nvidia-machine-learning-repo-rhel7-1.0.0-1.x86_64.rpm && \
yum clean all

RUN yum update -y && \
yum install -y cuda libcudnn7 libcudnn7-dev libnvinfer6 libnvinfer-dev libnvinfer-plugin6 && \
yum clean all

# Locale configuration --------------------------------------------------------#

RUN localedef -i en_US -f UTF-8 en_US.UTF-8
Expand Down