A Docker container for UPP was created as part of a project to create a containerized NWP workflow. It is not intended to be run stand-alone, but with proper modification it should work as an individual container outside of this workflow. See the full workflow tutorial for detailed instructions on how to obtain the UPP and other containers, as well as their setup and use. If you would like to attempt to use the UPP container on its own, follow the instructions below, but this is not recommended for novice users unfamiliar with Docker software
Installing and running the pre-built UPP container
As stated above, this is not recommended for novice users; it will be very hard to make good use of the UPP container without some background on both UPP and Docker containers. Novice users should work through the full container NWP tutorial which contains more complete documentation and scripts for handling the UPP container's input and output.
- Install Docker for Mac or Windows 10:
https://www.docker.com/products/overview - Download and install the upp-4.1 docker container:
wget https://dtcenter.org/dfiles/code/upp/container-upp-4.1.tar.gz
docker load -i container-upp-4.1.tar.gz
- Setup a working directory:
mkdir -p UPP_container/data
cd UPP_container
export UPP_CONTAINER_DIR=`pwd` (bash)
setenv UPP_CONTAINER_DIR `pwd` (tcsh)
- Launch a shell in the container:
docker run --rm -it -v ${UPP_CONTAINER_DIR}/output:/upp/output/ upp-v4.1 /bin/bash
Dockerfile
If you are familiar with building Docker images from scratch, you can find the Dockerfile used to construct the upp-4.1 container on github:
https://github.com/NCAR/container-dtc-nwp/blob/master/components/upp/Dockerfile