From e2eb6464b5c555013d2625338eedf683c0e34b54 Mon Sep 17 00:00:00 2001 From: henrywinterbottom-wxdev Date: Sun, 29 Oct 2023 11:15:38 -0600 Subject: [PATCH] Docker recipe files for . --- Docker/ubuntu20.04.ufs_obs.dockerfile | 29 +++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 Docker/ubuntu20.04.ufs_obs.dockerfile diff --git a/Docker/ubuntu20.04.ufs_obs.dockerfile b/Docker/ubuntu20.04.ufs_obs.dockerfile new file mode 100644 index 0000000..399fa9f --- /dev/null +++ b/Docker/ubuntu20.04.ufs_obs.dockerfile @@ -0,0 +1,29 @@ +# File: Docker/ubuntu20.04.ufs_obs.dockerfile +# Author: Henry R. Winterbottom +# Date: 29 October 2023 + +# ------------------------- +# * * * W A R N I N G * * * +# ------------------------- + +# It is STRONGLY urged that users do not make modifications below this +# point; changes below are not supported. + +# ------------------------- +# * * * W A R N I N G * * * +# ------------------------- + +FROM ghcr.io/henrywinterbottom-noaa/ubuntu20.04.ufs_pyutils:latest +ENV UFS_OBS_GIT_URL="https://www.github.com/HenryWinterbottom-NOAA/ufs_obs.git" +ENV UFS_OBS_GIT_BRANCH="develop" +ENV OBS_ROOT="/opt/ufs_obs" + +ARG DEBIAN_FRONTEND=noninteractive +ENV TZ=Etc/UTC +ENV PATH="/opt/miniconda/bin:${PATH}" + +RUN $(command -v git) clone --recursive "${UFS_OBS_GIT_URL}" --branch "${UFS_OBS_GIT_BRANCH}" "${OBS_ROOT}" && \ + $(command -v pip) install -r "${OBS_ROOT}/requirements.pip" && \ + echo "export OBS_ROOT=${OBS_ROOT}" >> /root/.bashrc + +ENV PYTHONPATH="${OBS_ROOT}/sorc:${PYTHONPATH}" \ No newline at end of file