Skip to content

Building Docker images locally is very slow while building the CXX client #9492

@eolivelli

Description

@eolivelli

Is your enhancement request related to a problem? Please describe.
On my Mac building the docker images is very slow, and the slowest part is during the build of the CXX client

[  0%] Building CXX object lib/CMakeFiles/pulsarStatic.dir/AckGroupingTracker.cc.o
[  0%] Building CXX object lib/CMakeFiles/pulsarStatic.dir/AckGroupingTrackerDisabled.cc.o
[  0%] Building CXX object lib/CMakeFiles/pulsarStatic.dir/AckGroupingTrackerEnabled.cc.o
[  3%] Building CXX object lib/CMakeFiles/pulsarStatic.dir/Authentication.cc.o
[  3%] Building CXX object lib/CMakeFiles/pulsarStatic.dir/Backoff.cc.o
[  3%] Building CXX object lib/CMakeFiles/pulsarStatic.dir/BatchAcknowledgementTracker.cc.o
[  6%] Building CXX object lib/CMakeFiles/pulsarStatic.dir/BatchMessageContainer.cc.o
[  6%] Building CXX object lib/CMakeFiles/pulsarStatic.dir/BatchMessageContain
....

I found that there would be some way to skip this part by using skipBuildCppClient,skipBuildCppClient
but if I enable those flags the build fails

the command is

cd docker
mvn clean install -Pdocker -pl pulsar

Describe the solution you'd like
To have a fast way to rebuild the images locally, in order to be quicker in debugging problems with integration tests

Additional context
I am on Docker Desktop on Mac, with a pretty good machine.
Probably the problem is due to how Docker Desktop deals with the disk

Metadata

Metadata

Assignees

No one assigned

    Labels

    lifecycle/staletype/enhancementThe enhancements for the existing features or docs. e.g. reduce memory usage of the delayed messages

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions