Skip to content

Commit

Permalink
Merge pull request #8 from HenryWinterbottom-NOAA/feature/docker_recipe
Browse files Browse the repository at this point in the history
Docker recipe files for .
  • Loading branch information
HenryRWinterbottom authored Oct 29, 2023
2 parents c81e010 + e2eb646 commit 533551d
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions Docker/ubuntu20.04.ufs_obs.dockerfile
Original file line number Diff line number Diff line change
@@ -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}"

0 comments on commit 533551d

Please sign in to comment.