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
Highlighted

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

Powering DevOps with Bitbucket Server & Data Center

Hi everyone, The Cloud team recently announced 12 new DevOps features that help developers ship better code, faster   ! While we’re all excited about the new improvements to Bitbucket ...

1,505 views 0 6
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