-
Notifications
You must be signed in to change notification settings - Fork 0
Basic on Building a Docker Image
Philip Maechling edited this page Jul 26, 2022
·
1 revision
Basic steps
- create a build docker images directory
- git clone ucvm
- 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
- git clone ucvm_docker
- cd into ucvm_docker/ucvm_v21_10
- 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.
- 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.
- 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