Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Docker steps with different memory limits

Jim Patterson
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 18, 2020

Since the definitions and pipeline sections are separate, how can we have two docker steps that use different amounts of memory?

In my case, I do all the building in docker.  So for the dev branches, I run docker build to do the basics setup and unit tests.  But in the deployment branches, I also do the full builds.  This means the deployment builds are done in `size: 2x` steps while the dev builds are done in normal size steps.

But I need to run the dockers those with different service limits on memory also so that docker can use the increased memory while building.

I can make all the docker steps 2x, but then I'm wasting memory and money for steps that don't need the extra memory.

1 answer

1 accepted

0 votes
Answer accepted
DPKJ
Community Champion
September 19, 2020

@Jim Patterson I don't think this is possible as of now.

You can't configure memory per step.

Jim Patterson
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 21, 2020

I fear that you are correct.  But from a consumer point of view, this is not a good scenario.  Since I'm using docker in my pipelines, I have to pay double for all my pipeline minutes because one step needs more memory.

Like DPKJ likes this
DPKJ
Community Champion
September 21, 2020

If you raise this issue do let me I will surely up-vote.

Suggest an answer

Log in or Sign up to answer