ASGS Docker Images - StormSurgeLive/asgs GitHub Wiki

Notes:

  • This is for 2019stable, which is not the latest being used for the 2020 Hurricane Season.
  • ADCIRC is not installed by default and must be obtained elsewhere
  1. user installs Docker for their host (e.g., their laptop) - https://www.docker.com/get-started
  2. via commandline or terminal once Docker is installed,

docker run -it asgsdockerhub/2019stable

  1. (user observe you are in the ASGS Shell)
  2. run "verify" to see Perl and Python env validated,

asgs (default)> verify

Docker image site: https://hub.docker.com/r/asgsdockerhub/2019stable

Troubleshooting

From Jason: I tried to rebuild an image from Dockerfile.dev but the build failed with messages like the following:

E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/v/vim/vim-runtime_7.4.1689-3ubuntu1.4_all.deb  404  Not Found [IP: 91.189.88.152 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/v/vim/vim_7.4.1689-3ubuntu1.4_amd64.deb  404  Not Found [IP: 91.189.88.152 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
The command '/bin/sh -c apt-get install -y gfortran wget curl vim screen htop tmux git sudo bc' returned a non-zero code: 100

Docker erroneously seems to see that the apt-get update command was run on the image in the cache, so it doesn't need to be run again. I found more info at the following link:

Leverage Build Cache

I am going to use the --no-cache=true option for docker build. From Brett: Yes, --no-cache=true is how this is handled. The caching of images that have been built is definitely handy in most situations. In this case it seems not - another thing you can do is add apt-get update && in front an additional lines you may end up adding in the Dockerfile.