Skip to content

Commit

Permalink
Update Dockerfile-gpu
Browse files Browse the repository at this point in the history
  • Loading branch information
traderpedroso authored Mar 14, 2024
1 parent 0ee98de commit 5b6ac1b
Showing 1 changed file with 8 additions and 18 deletions.
26 changes: 8 additions & 18 deletions Dockerfile-gpu
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
FROM nvidia/cuda:12.3.2-cudnn9-devel-rockylinux9


ARG dssVersion=12.5.2


ENV DSS_VERSION="$dssVersion" \
DSS_DATADIR="/home/dataiku/dss" \
DSS_PORT=10000
Expand All @@ -15,7 +15,7 @@ RUN useradd dataiku \
# System dependencies
RUN yum install -y \
epel-release \
&& yum install -y \
&& yum install -y --enablerepo=powertools \
glibc-langpack-en \
file \
acl \
Expand All @@ -31,6 +31,7 @@ RUN yum install -y \
freetype \
libgfortran \
libgomp \
R-core-devel \
libicu-devel \
libcurl-devel \
openssl-devel \
Expand All @@ -39,24 +40,13 @@ RUN yum install -y \
gtk3 \
libXScrnSaver \
alsa-lib \
nss \
mesa-libgbm \
libX11-xcb \
python2-devel \
python36-devel \
&& yum clean all

# RUN dnf -y install epel-release
# RUN dnf -y update
# RUN rpm -q epel-release
# RUN yum config-manager --add-repo http://developer.download.nvidia.com/compute/cuda/repos/rhel8/x86_64/cuda-rhel8.repo
# RUN dnf -y install kernel-devel
# RUN yum -y install cuda-11.6.2-1.x86_64


# Build R 3.6 from source
COPY build-r36.sh /tmp/
RUN /tmp/build-r36.sh \
&& rm -f /tmp/build-r36.sh

# Download and extract DSS kit
RUN DSSKIT="dataiku-dss-$DSS_VERSION" \
&& cd /home/dataiku \
Expand All @@ -66,16 +56,16 @@ RUN DSSKIT="dataiku-dss-$DSS_VERSION" \
&& tar xf "$DSSKIT.tar.gz" \
&& rm "$DSSKIT.tar.gz" \
&& "$DSSKIT"/scripts/install/installdir-postinstall.sh "$DSSKIT" \
&& (cd "$DSSKIT"/resources/graphics-export && npm install puppeteer@1.20.0 fs) \
&& (cd "$DSSKIT"/resources/graphics-export && npm install puppeteer@13.7.0 fs) \
&& chown -Rh dataiku:dataiku "$DSSKIT"

# Install required R packages
RUN mkdir -p /usr/local/lib64/R/site-library \
RUN mkdir -p /usr/local/lib/R/site-library \
&& R --slave --no-restore \
-e "install.packages( \
c('httr', 'RJSONIO', 'dplyr', 'curl', 'IRkernel', 'sparklyr', 'ggplot2', 'gtools', 'tidyr', \
'rmarkdown', 'base64enc', 'filelock'), \
'/usr/local/lib64/R/site-library', \
'/usr/local/lib/R/site-library', \
repos='https://cloud.r-project.org')"

# Entry point
Expand Down

0 comments on commit 5b6ac1b

Please sign in to comment.