Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Pipelines takes an enormous amount of time to compile C++ code during a docker build

I have a pipelines build running, and all it does is `docker build`. Inside the `Dockerfile` of that build, it is compiling a C++ library to store the final output binaries in the image for usage later. However, the C++ build is extremely slow. About 12 minutes have gone by and it only compiled 1 file. This is eating up the precious minutes I pay for. Why is this so slow?

1 comment

After poking around a bit, I think it has to do with how many processes are simultaneously compiling translation units during the docker build. Basically you have to do `make -j4` to limit it. 4 works, 8 threads hangs it.

Comment

Log in or Sign up to comment
TAGS
Community showcase
Published in Bitbucket

New improvements to user management in Bitbucket Cloud 👥

Hey Community! We’re willing to wager that quite a few of you not only use Bitbucket, but administer it too. Our team is excited to share that we’ll be releasing improvements throughout this month of...

4,327 views 11 16
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you