-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from HenryWinterbottom-NOAA/feature/docker_recipe
Docker recipe files for .
- Loading branch information
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}" |