WRF-Hydro latest docker image

59 views
Skip to first unread message

Parth

unread,
Jan 29, 2025, 8:24:30 PMJan 29
to wrf-hydro_users
Hi there,

I am looking to test WRF-Hydro for a small domain on a Windows machine (will later switch to an Ubuntu system). Can someone please share a link to the latest docker image? The latest I could find was "wrfhydro/training:v5.2.0-rc1". Are there any updates made to that using the new V5.3?

Thank you,
Parth

Soren Rasmussen

unread,
Jan 30, 2025, 11:06:22 AMJan 30
to wrf-hyd...@ucar.edu
Hi Parth,

Sorry that isn't working for you. We're in the process of updating everything for our upcoming v5.4 release. The trainings won't be updated until after the release but I can get a wrfhydro/dev docker container working so you can at least run something. Do you specifically need the training domains or do you have your own small domain to run?

Thanks,
Soren

--
You received this message because you are subscribed to the Google Groups "wrf-hydro_users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wrf-hydro_use...@ucar.edu.
To view this discussion visit https://groups.google.com/a/ucar.edu/d/msgid/wrf-hydro_users/d28fdef6-37d5-4515-a140-7879b69c0f85n%40ucar.edu.


--
Soren Rasmussen, Ph.D.
Hydrometeorological Applications Program
Research Applications Laboratory
NSF National Center for Atmospheric Research (NCAR)

Soren Rasmussen

unread,
Jan 30, 2025, 11:38:26 AMJan 30
to wrf-hyd...@ucar.edu
Hi Parth,

I just updated the wrfhydro/dev:base image on Docker Hub so doing the following commands should get you a working v5.3 build.

$ docker pull wrfhydro/dev:base
$ docker run -it wrfhydro/dev:base
$ git clone --branch v5.3.0 https://github.com/NCAR/wrf_hydro_nwm_public.git
$ cd wrf_hydro_nwm_public/trunk/NDHMS
$ mkdir build
$ cd build
$ cmake ..
$ make -j

If you have any questions please let us know.

Cheers,
Soren

Parth

unread,
Jan 30, 2025, 12:38:26 PMJan 30
to wrf-hydro_users, Soren Rasmussen
Hi Soren,

Thank you so much for your prompt response and updating the docker. I have my own domain to run. The only reason I was using the training docker was the preprocessing setup (i.e., WPS, GIS preprocessing). I am not sure if the updated docker will have the preprocessing setup. I will check out the updated docker later this afternoon.

Thank you for your help,
Parth

Soren Rasmussen

unread,
Jan 30, 2025, 1:45:31 PMJan 30
to Parth, wrf-hydro_users
Hi Parth,

Yeah, the preprocessing setup won't be already setup in wrfhydro/dev:base like the other Docker images, but until those images are updated you should be able to follow these readthedoc steps to setup the preprocessing steps yourself. Sorry for the extra hassle, after the v5.4 release all the docker images and training will be updated to make things easier!

Thanks,
Soren

Parthkumar Modi

unread,
Jan 30, 2025, 6:08:56 PMJan 30
to Soren Rasmussen, wrf-hydro_users
Hi Soren,

I started setting up the preprocessing steps from the link you shared. However, it needs me to install python as a first step in compiling WRF which needs root permissions (which I don't have since I am not the one who built the image). Is there a way to bypass those permissions somehow via modifying the dockerfile on your end?  

Thank you,
Parth 

Soren Rasmussen

unread,
Jan 30, 2025, 10:55:37 PMJan 30
to Parthkumar Modi, wrf-hydro_users
Hi Parth,

I've pushed the new latest tag which is a complete dev environment and it may not require any new packages installed to run coupled WRF (I haven't tested it yet). You can get it with the following

$ docker pull wrfhydro/dev

It's considered bad security practice to push Docker images with default sudo root access so that is why we don't do it. If the latest dev image doesn't have everything you want installed you can get the Dockerfile from github repository and remove the two lines near the end of the file

```
USER docker
WORKDIR /home/docker
```

Then you can run the command "docker build -t wrfhydro/dev:local ." and "docker run -it wrfhydro/dev:local" to build and run the Docker image with root access. You'll then be able to use apt-get to install packages.

Cheers,
Soren

Parthkumar Modi

unread,
Jan 31, 2025, 6:26:21 PMJan 31
to Soren Rasmussen, wrf-hydro_users
Hi Soren,

That was a great set of instructions. I was able to successfully set up a new root image (containing WRF-hydro, WRF and WPS) using the second approach ("dockerfile") you mentioned. Also, I have flexibility to install other softwares as needed. A few things I noticed while installing WRF & WPS:

WRF: git clone --recurse-submodule --branch v4.6.1 https://github.com/wrf-model/WRF.git (added an extra flag to download noahmp drivers)
WPS: I was able to compile and configure using cmake. (./configure_new followed by ./compile_new)

Thank you once again. This has made things a lot easier.
Parth

Soren Rasmussen

unread,
Feb 3, 2025, 10:16:08 PMFeb 3
to Parthkumar Modi, wrf-hydro_users
Hi Parth,

Thanks for the feedback, I'll need to update the documentation so that is good to know!

Cheers,
Soren
Reply all
Reply to author
Forward
0 new messages