You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
task:
name: Examplecontainer:
dockerfile: my/example.dockerfilecpu: 1memory: 512MBscript:
- echo 'Cirrus CI is awesome!'
which implicitly creates a task to build an image from my Dockerfile, push it to the private registry at Cirrus, then instantiates a container and runs the script there. The container's CPU and memory are limited according to the above config.
However, the implicit task that builds the Docker image is not limited, and uses 4 CPUs and 15 GB memory. Most of those resources are going unused, wasting my compute credits.
How do I add CPU limits for the implicit Docker builder?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
I use a shorthand syntax:
which implicitly creates a task to build an image from my Dockerfile, push it to the private registry at Cirrus, then instantiates a container and runs the script there. The container's CPU and memory are limited according to the above config.
However, the implicit task that builds the Docker image is not limited, and uses 4 CPUs and 15 GB memory. Most of those resources are going unused, wasting my compute credits.
How do I add CPU limits for the implicit Docker builder?
All reactions