I tried introducing a new internal image to my bitbucket-pipelines.yml file, and the build gave me this message without running anything.
"A step does not have the minimum resources needed to run (1024 MB). Services on the current step are consuming 4096 MB"
So it appears that I need to increase the resources available for the build to run. How can I go about doing that?
A step in Pipelines has 4GB of available memory by default. You can increase this to 8GB by running 2x builds: https://blog.bitbucket.org/2018/02/20/support-large-builds-bitbucket-pipelines/
When you add a service to a step it will consume 1GB by default. For example a step with a single service leaves 3GB for the rest of the build. The build space must have at least 1GB to run.
You can configure a service to use anywhere from 128 to 3072 MB (or 7128 MB for 2x builds). This allows you to dedicate less memory to services and more to the build space as required. Please see "Service memory limits" in our documentation for more information: https://confluence.atlassian.com/bitbucket/use-services-and-databases-in-bitbucket-pipelines-874786688.html
1024 MB is the minimum amount of memory required by the default build container. If you allocate docker 3072 MB then there will be 1024 MB left for the build container. E.g.
If you allocate docker 3073 MB or more you will see this error.
If you allocate docker 3072 MB and you have a second service you will see this error as the total memory pool is 4 GB and the build space must have at least 1 GB to run.
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...
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