File tree Expand file tree Collapse file tree 1 file changed +3
-11
lines changed Expand file tree Collapse file tree 1 file changed +3
-11
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
- # This script is used to pull
4
- # This script is used to build an image that is embedded in HookOS.
5
- # The image contains the /var/lib/docker directory which has pulled images
6
- # from the images.txt file. When HookOS boots up, the DinD container will
7
- # have all the images in its cache.
8
-
9
- # The purpose of doing this is so that EKS Anywhere doesn't have to set registry
10
- # and registry credentials in each Hardware object.
11
-
12
- # In my testing the initramfs for HookOS with these embedded images was about 334MB.
13
- # The machine booting HookOS needed 6GB of RAM to boot up successfully.
3
+ # This script is used to build container images that are embedded in HookOS.
4
+ # When HookOS boots up, the DinD container will have all the images in its cache.
14
5
15
6
set -euo pipefail
16
7
@@ -44,6 +35,7 @@ function main() {
44
35
# Pull the images
45
36
while IFS=" " read -r first_image image_tag || [ -n " ${first_image} " ] ; do
46
37
echo -e " ----------------------- $first_image -----------------------"
38
+ # Remove the image if it exists so that the image pulls the correct architecture
47
39
docker_remove_image " ${first_image} "
48
40
docker_pull_image " ${first_image} " " ${arch} "
49
41
done < " ${images_file} "
You can’t perform that action at this time.
0 commit comments