lhotari opened a new pull request #9627:
URL: https://github.com/apache/pulsar/pull/9627


   ### Motivation
   
   Smaller `pulsar-test-latest-version` docker image size makes it feasible to 
build the image once and share it between the different parallel integration 
test build jobs. This will help improve the Pulsar CI in the future since it 
opens up new possibilities to save build system resources (GitHub Actions 
Runner VM time).
   
   ### Modifications
   
   - Build go-lang examples in a separate temporary layer. This reduces the 
final size of the image by at least 600MB.
   
   - Cleanup files as last steps
     - Cleaning up files doesn't reduce the size of the image yet since it 
requires docker build squashing. The cleanup step is preparation for future 
changes.
     - To actually reduce the final image size, it would require 
`-Ddockerfile.build.squash=true` (uses `docker build --squash`). This is not 
part of this change since the image size isn't important until images are 
transferred over  the network. Squashing the image would just add overhead to 
the current build.
     - Remove Pulsar CPP library's static libraries `/usr/lib/libpulsar*.a` 
(since no tests use it)
     - Remove gcc compiler (since no tests use it)
     


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to