Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use common base docker images to share layers across service images #396

Merged
merged 1 commit into from
Dec 15, 2023

Conversation

groldan
Copy link
Member

@groldan groldan commented Dec 14, 2023

Sharing docker image layers. Check the number of layers for each service:

BEFORE:

TAG=1.4.1 docker compose pull
[+] Pulling 68/25
 ✔ admin 4 layers [⣿⣿⣿⣿]               0B/0B      Pulled   20.4s 
 ✔ config 3 layers [⣿⣿⣿]               0B/0B      Pulled   13.1s 
 ✔ discovery 3 layers [⣿⣿⣿]            0B/0B      Pulled   16.8s 
 ✔ gateway 10 layers [⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿]      0B/0B      Pulled    4.6s 
 ✔ gwc 5 layers [⣿⣿⣿⣿⣿]                0B/0B      Pulled   32.5s 
 ✔ rest 6 layers [⣿⣿⣿⣿⣿⣿]              0B/0B      Pulled   27.3s 
 ✔ wcs 3 layers [⣿⣿⣿]                  0B/0B      Pulled   27.7s 
 ✔ webui 6 layers [⣿⣿⣿⣿⣿⣿]             0B/0B      Pulled   23.1s 
 ✔ wfs 3 layers [⣿⣿⣿]                  0B/0B      Pulled   16.6s 
 ✔ wms 6 layers [⣿⣿⣿⣿⣿⣿]               0B/0B      Pulled   12.7s 
 ✔ wps 4 layers [⣿⣿⣿⣿]                 0B/0B      Pulled   12.8s

AFTER:

TAG=1.5-SNAPSHOT docker compose pull
[+] Pulling 55/33
 ✔ admin 2 layers [⣿⣿]                 0B/0B      Pulled   12.0s 
 ✔ config 2 layers [⣿⣿]                0B/0B      Pulled   12.1s 
 ✔ discovery 12 layers [⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿]  0B/0B      Pulled    5.0s 
 ✔ gateway 2 layers [⣿⣿]               0B/0B      Pulled    7.7s 
 ✔ gwc 3 layers [⣿⣿⣿]                  0B/0B      Pulled   13.5s 
 ✔ rest 3 layers [⣿⣿⣿]                 0B/0B      Pulled   10.1s 
 ✔ wcs 6 layers [⣿⣿⣿⣿⣿⣿]               0B/0B      Pulled   10.0s 
 ✔ webui 3 layers [⣿⣿⣿]                0B/0B      Pulled   10.1s 
 ✔ wfs 2 layers [⣿⣿]                   0B/0B      Pulled   13.8s 
 ✔ wms 3 layers [⣿⣿⣿]                  0B/0B      Pulled   12.9s 
 ✔ wps 2 layers [⣿⣿]                   0B/0B      Pulled   14.7s 

@groldan groldan added build Issues related to the build and/or CI docker Issues related to docker images or docker composition labels Dec 14, 2023
@groldan groldan force-pushed the build/shared_base_image_layers branch from a247a69 to 8c75083 Compare December 14, 2023 16:20
@groldan groldan force-pushed the build/shared_base_image_layers branch from 8c75083 to 9324e40 Compare December 14, 2023 17:12
@groldan groldan merged commit 908791d into geoserver:main Dec 15, 2023
2 checks passed
@groldan groldan deleted the build/shared_base_image_layers branch December 15, 2023 02:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Issues related to the build and/or CI docker Issues related to docker images or docker composition
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant