WGRIB2 on Container (Debian)
docker pull sondngyn/wgrib2:latest
Create .env
file from .env.dist
and change the env values to the dirs location on your computer (for windows, use /c/abs/path/
)
docker-compose build wgrib2
docker-compose up wgrib2
(change command
in docker-compose file to your script filename before running up
)
docker build -t wgrib2 .
docker run -v /path/to/data:/srv/ -v /path/to/script:/opt/ wgrib2 /opt/script_file_name.sh
*Note:
Remember to put #!bin/bash
in the beginning of your script file
Make sure your script file uses LF (Linux line break types) instead of CRLF (Windows)
docker run -v C:\\absolute\\path\\:/srv/ -v C:\\absolute\\path\\:/opt/ wgrib2 script_file_name.sh
(watch out for back-slashes and forward-slashes)
docker run -v C:\\Users\\myuser\\mydata\\:/srv/ -v C:\\Users\\myuser\\myscript\\:/opt/ wgrib2 myscript.sh