Skip to content

Basic on Building a Docker Image

Philip Maechling edited this page Jul 26, 2022 · 1 revision

Building-Docker-Images

Basic steps

  1. create a build docker images directory
  2. git clone ucvm
  3. cd ucvm/largefiles and run get_large_files. Large files will be pulled from here into the ./src directory in the image. This can be removed after all images are built
  4. git clone ucvm_docker
  5. cd into ucvm_docker/ucvm_v21_10
  6. git clone ucvm - this provides the src that will be copied into the image. Scripts will move the required large file in use. This ucvm directory can be removed after the images are built, and should not be added to the ucvm_docker repo.
  7. The Dockerfile and build process, for single images, makes use of a "feature" of the ucvm installation scripts, in which is only stages files that it finds in the largefiles directory. This is why the get_largefiles, lists many images, but the stagelarge files only stages one.
  8. Move the non-model large files into the ucvm_v21_10/ucvm/largefiles subdirectory.
-rw-r--r--   1 maechlin  staff        1254 Nov  7 12:45 README
-rwxr-xr-x   1 maechlin  staff        5101 Nov  7 12:45 check_largefiles_md5.py
-rw-r--r--   1 maechlin  staff      117191 Nov  7 13:45 euclid3-1.3.tar.gz
-rw-r--r--   1 maechlin  staff     4001836 Nov  7 13:45 fftw-3.3.3.tar.gz
-rwxr-xr-x   1 maechlin  staff        8389 Nov  7 12:45 get_largefiles.py
-rw-r--r--   1 maechlin  staff     1076823 Nov  7 13:45 proj-5.0.0.tar.gz
-rwxr-xr-x   1 maechlin  staff        6199 Nov  7 13:06 stage_largefiles.py
-rw-r--r--   1 maechlin  staff   611953947 Nov  7 13:45 test-grid-lib-1d.ref
-rw-r--r--   1 maechlin  staff  1227960585 Nov  7 13:44 ucvm.e
-rw-r--r--   1 maechlin  staff   439009516 Nov  7 13:44 ucvm_utah.e

Clone this wiki locally