From 2d41130acccccefed497d2d926dc4b1334405b98 Mon Sep 17 00:00:00 2001 From: Aaron Donahue Date: Fri, 18 Oct 2024 10:58:26 -0700 Subject: [PATCH] This commit removes a docker folder in eamxx no longer in use. This commit removes a docker container that was added to EAMxx for the Corrective-ML effort. Since that effort is on pause and there may be future efforts to containerize the code this commit removes this version to avoid confusion. --- components/eamxx/docker/Dockerfile | 33 ------------------------ components/eamxx/docker/README.md | 24 ----------------- components/eamxx/docker/requirements.txt | 5 ---- 3 files changed, 62 deletions(-) delete mode 100644 components/eamxx/docker/Dockerfile delete mode 100644 components/eamxx/docker/README.md delete mode 100644 components/eamxx/docker/requirements.txt diff --git a/components/eamxx/docker/Dockerfile b/components/eamxx/docker/Dockerfile deleted file mode 100644 index 4dcdc8371e0..00000000000 --- a/components/eamxx/docker/Dockerfile +++ /dev/null @@ -1,33 +0,0 @@ -ARG CIME_VERSION=latest -FROM cime:${CIME_VERSION} AS base - -ENV USER=root -ENV LOGNAME=root -ENV DEBIAN_FRONTEND="noninteractive" - -SHELL ["/bin/bash", "-c"] - -# Install additional packages -RUN mamba install --yes -c conda-forge \ - lapack \ - blas && \ - rm -rf /opt/conda/pkgs/* - -# Install dependencies -COPY components/eamxx/docker/requirements.txt /tmp/requirements.txt -RUN pip install -r /tmp/requirements.txt - -# install gcloud -RUN apt-get update && apt-get install -y apt-transport-https ca-certificates gnupg curl gettext - -RUN echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] https://packages.cloud.google.com/apt cloud-sdk main" | tee -a /etc/apt/sources.list.d/google-cloud-sdk.list &&\ - curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key --keyring /usr/share/keyrings/cloud.google.gpg add - - -RUN apt-get update && apt-get install -y google-cloud-sdk -RUN gcloud config set project vcm-ml - -ENV OMPI_ALLOW_RUN_AS_ROOT=1 -ENV OMPI_ALLOW_RUN_AS_ROOT_CONFIRM=1 -ENV IS_DOCKER=TRUE - -COPY / /src/E3SM \ No newline at end of file diff --git a/components/eamxx/docker/README.md b/components/eamxx/docker/README.md deleted file mode 100644 index a5e92f81997..00000000000 --- a/components/eamxx/docker/README.md +++ /dev/null @@ -1,24 +0,0 @@ -SCREAM Docker -====== - -SCREAM Docker is built on top of CIME's Docker image. Make sure CIME image is built first, please refer to the CIME's [documentation](../../../cime/docker/README.md) for more information on building the base image. - -## Building the container - -From the top level of the SCREAM repository, run the following commands: -```bash -docker build -t cime:latest --target base cime/docker/ -docker build --file components/eamxx/docker/Dockerfile -t scream:latest . -``` - -## Running the container - -```bash -docker run -it --hostname docker -e CIME_MODEL=e3sm scream:latest bash -``` - -It is highly recommended to mount your current working scream repository to the container: - -```bash -docker run -it -v $SCREAM_REPO:/src/E3SM --hostname docker -e CIME_MODEL=e3sm scream:latest bash -``` diff --git a/components/eamxx/docker/requirements.txt b/components/eamxx/docker/requirements.txt deleted file mode 100644 index 85388d5778c..00000000000 --- a/components/eamxx/docker/requirements.txt +++ /dev/null @@ -1,5 +0,0 @@ -numpy -xarray -zarr -netCDF4 -cftime \ No newline at end of file