Hi everyone
I have a question regarding the implication of using some Docker images that might be too large?
I was looking at the build summary and I could see it being broken down into the following categories:
- Build Setup
- ... Some scripts written in the pipeline steps
- Build teardown
The puzzling part for me is the fact that none of these steps show the process of getting the image and running it. For instance, if the Pipeline is based on `image: atlassian/pipelines-awscli`, I was expecting to see that image being pulled and processed.
The reason for my question is that I am trying to optimize the heck out of out deployment process to make them blazing fast. So I was to avoid always seeing commands like `apt-get update` or `apt-get install ...` or installing some PHP extensions.
I usually work with PHP and the aws cli. So I figured that if I bundle those and add the needed php extensions and `composer` in the same Docker image, I can then cache it in the Pipeline because the only thing that often changes is our code base.
The problem, is that I have noticed that a vanilla image that only has PHP 3.7.15 and AWS CLI is 500MB large which is too large for my taste.
If I could see the data for the images being used in the Pipelines logs, it would have help having a line in the sand (a reference) to use during the optimization that I am trying to do.
Is the time required for pulling and running the Docker image before the "Build setup" accounted for in the build minutes?
Thanks