From 7625ce25d6b6759ce2c23f499df481ed4de69a43 Mon Sep 17 00:00:00 2001 From: Sanaz Agarwal Date: Thu, 17 Oct 2024 14:08:02 -0700 Subject: [PATCH 1/3] adding Dockerfile for Python Deep Learning Libraries --- deepLearning_python/Dockerfile_1.0 | 18 ++++++++++++++++++ deepLearning_python/Dockerfile_latest | 18 ++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 deepLearning_python/Dockerfile_1.0 create mode 100644 deepLearning_python/Dockerfile_latest diff --git a/deepLearning_python/Dockerfile_1.0 b/deepLearning_python/Dockerfile_1.0 new file mode 100644 index 0000000..398a263 --- /dev/null +++ b/deepLearning_python/Dockerfile_1.0 @@ -0,0 +1,18 @@ +FROM nvidia/cuda:11.7.1-cudnn8-devel-ubuntu22.04 + +# Adding labels for the GitHub Container Registry +LABEL org.opencontainers.image.title="DL_python" +LABEL org.opencontainers.image.description="Docker image for the use of Deep Learning Python packages in FH DaSL's WILDS" +LABEL org.opencontainers.image.version="1.0" +LABEL org.opencontainers.image.authors="wilds@fredhutch.org" +LABEL org.opencontainers.image.url=https://hutchdatascience.org/ +LABEL org.opencontainers.image.documentation=https://getwilds.org/ +LABEL org.opencontainers.image.source=https://github.com/getwilds/wilds-docker-library +LABEL org.opencontainers.image.licenses=MIT + +RUN apt-get update \ + && apt-get install -y --no-install-recommends python3=3.10.6-1~22.04.1 python3-pip=22.0.2+dfsg-1ubuntu0.4 + +RUN pip install --no-cache-dir numpy==1.26.4 seaborn==0.9.0 matplotlib==3.9.2 pandas==2.2.3 scikit-learn==1.5.2 \ + scipy==1.14.1 optuna==4.0.0 joblib==0.13.2 +RUN pip install --no-cache-dir keras==3.6.0 tensorflow=2.17.0 torch=2.5.0 diff --git a/deepLearning_python/Dockerfile_latest b/deepLearning_python/Dockerfile_latest new file mode 100644 index 0000000..e9b44c3 --- /dev/null +++ b/deepLearning_python/Dockerfile_latest @@ -0,0 +1,18 @@ +FROM nvidia/cuda:11.7.1-cudnn8-devel-ubuntu22.04 + +# Adding labels for the GitHub Container Registry +LABEL org.opencontainers.image.title="DL_python" +LABEL org.opencontainers.image.description="Docker image for the use of Deep Learning Python packages in FH DaSL's WILDS" +LABEL org.opencontainers.image.version="latest" +LABEL org.opencontainers.image.authors="wilds@fredhutch.org" +LABEL org.opencontainers.image.url=https://hutchdatascience.org/ +LABEL org.opencontainers.image.documentation=https://getwilds.org/ +LABEL org.opencontainers.image.source=https://github.com/getwilds/wilds-docker-library +LABEL org.opencontainers.image.licenses=MIT + +RUN apt-get update \ + && apt-get install -y --no-install-recommends python3=3.10.6-1~22.04.1 python3-pip=22.0.2+dfsg-1ubuntu0.4 + +RUN pip install --no-cache-dir numpy==1.26.4 seaborn==0.9.0 matplotlib==3.9.2 pandas==2.2.3 scikit-learn==1.5.2 \ + scipy==1.14.1 optuna==4.0.0 joblib==0.13.2 +RUN pip install --no-cache-dir keras==3.6.0 tensorflow=2.17.0 torch=2.5.0 From 8db801f1e4c11663516dd62d647a3ce370d9be53 Mon Sep 17 00:00:00 2001 From: tefirman Date: Fri, 18 Oct 2024 13:25:11 -0700 Subject: [PATCH 2/3] Fixing linting errors for Python Deep Learning images --- deepLearning_python/Dockerfile_1.0 | 14 +++++++++----- deepLearning_python/Dockerfile_latest | 16 ++++++++++------ 2 files changed, 19 insertions(+), 11 deletions(-) diff --git a/deepLearning_python/Dockerfile_1.0 b/deepLearning_python/Dockerfile_1.0 index 398a263..eda920a 100644 --- a/deepLearning_python/Dockerfile_1.0 +++ b/deepLearning_python/Dockerfile_1.0 @@ -1,7 +1,9 @@ + +# Using a CUDA base image FROM nvidia/cuda:11.7.1-cudnn8-devel-ubuntu22.04 # Adding labels for the GitHub Container Registry -LABEL org.opencontainers.image.title="DL_python" +LABEL org.opencontainers.image.title="pythonDL" LABEL org.opencontainers.image.description="Docker image for the use of Deep Learning Python packages in FH DaSL's WILDS" LABEL org.opencontainers.image.version="1.0" LABEL org.opencontainers.image.authors="wilds@fredhutch.org" @@ -10,9 +12,11 @@ LABEL org.opencontainers.image.documentation=https://getwilds.org/ LABEL org.opencontainers.image.source=https://github.com/getwilds/wilds-docker-library LABEL org.opencontainers.image.licenses=MIT +# Installing Python RUN apt-get update \ - && apt-get install -y --no-install-recommends python3=3.10.6-1~22.04.1 python3-pip=22.0.2+dfsg-1ubuntu0.4 + && apt-get install -y --no-install-recommends python3=3.10.6-1~22.04.1 python3-pip=22.0.2+dfsg-1ubuntu0.4 \ + && rm -rf /var/lib/apt/lists/* -RUN pip install --no-cache-dir numpy==1.26.4 seaborn==0.9.0 matplotlib==3.9.2 pandas==2.2.3 scikit-learn==1.5.2 \ - scipy==1.14.1 optuna==4.0.0 joblib==0.13.2 -RUN pip install --no-cache-dir keras==3.6.0 tensorflow=2.17.0 torch=2.5.0 +# Installing necessary Python modules +RUN pip install --no-cache-dir numpy==1.26.4 seaborn==0.13.2 matplotlib==3.9.2 pandas==2.2.3 scikit-learn==1.5.2 \ + scipy==1.14.1 optuna==4.0.0 joblib==1.4.2 keras==3.6.0 tensorflow==2.17.0 torch==2.5.0 diff --git a/deepLearning_python/Dockerfile_latest b/deepLearning_python/Dockerfile_latest index e9b44c3..eda920a 100644 --- a/deepLearning_python/Dockerfile_latest +++ b/deepLearning_python/Dockerfile_latest @@ -1,18 +1,22 @@ + +# Using a CUDA base image FROM nvidia/cuda:11.7.1-cudnn8-devel-ubuntu22.04 # Adding labels for the GitHub Container Registry -LABEL org.opencontainers.image.title="DL_python" +LABEL org.opencontainers.image.title="pythonDL" LABEL org.opencontainers.image.description="Docker image for the use of Deep Learning Python packages in FH DaSL's WILDS" -LABEL org.opencontainers.image.version="latest" +LABEL org.opencontainers.image.version="1.0" LABEL org.opencontainers.image.authors="wilds@fredhutch.org" LABEL org.opencontainers.image.url=https://hutchdatascience.org/ LABEL org.opencontainers.image.documentation=https://getwilds.org/ LABEL org.opencontainers.image.source=https://github.com/getwilds/wilds-docker-library LABEL org.opencontainers.image.licenses=MIT +# Installing Python RUN apt-get update \ - && apt-get install -y --no-install-recommends python3=3.10.6-1~22.04.1 python3-pip=22.0.2+dfsg-1ubuntu0.4 + && apt-get install -y --no-install-recommends python3=3.10.6-1~22.04.1 python3-pip=22.0.2+dfsg-1ubuntu0.4 \ + && rm -rf /var/lib/apt/lists/* -RUN pip install --no-cache-dir numpy==1.26.4 seaborn==0.9.0 matplotlib==3.9.2 pandas==2.2.3 scikit-learn==1.5.2 \ - scipy==1.14.1 optuna==4.0.0 joblib==0.13.2 -RUN pip install --no-cache-dir keras==3.6.0 tensorflow=2.17.0 torch=2.5.0 +# Installing necessary Python modules +RUN pip install --no-cache-dir numpy==1.26.4 seaborn==0.13.2 matplotlib==3.9.2 pandas==2.2.3 scikit-learn==1.5.2 \ + scipy==1.14.1 optuna==4.0.0 joblib==1.4.2 keras==3.6.0 tensorflow==2.17.0 torch==2.5.0 From 61ec982008ee26e6197c520da5de3e5cd7adeb15 Mon Sep 17 00:00:00 2001 From: tefirman Date: Fri, 18 Oct 2024 13:26:45 -0700 Subject: [PATCH 3/3] Renaming Python Deep Learning image --- {deepLearning_python => pythonDL}/Dockerfile_1.0 | 0 {deepLearning_python => pythonDL}/Dockerfile_latest | 0 2 files changed, 0 insertions(+), 0 deletions(-) rename {deepLearning_python => pythonDL}/Dockerfile_1.0 (100%) rename {deepLearning_python => pythonDL}/Dockerfile_latest (100%) diff --git a/deepLearning_python/Dockerfile_1.0 b/pythonDL/Dockerfile_1.0 similarity index 100% rename from deepLearning_python/Dockerfile_1.0 rename to pythonDL/Dockerfile_1.0 diff --git a/deepLearning_python/Dockerfile_latest b/pythonDL/Dockerfile_latest similarity index 100% rename from deepLearning_python/Dockerfile_latest rename to pythonDL/Dockerfile_latest