Skip to content

Add docker image size limit #96

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 29, 2023

Conversation

ImogenBits
Copy link
Collaborator

This just adds an option to limit the size of the build docker images. This looks at the final docker image size after all dependencies etc are included. This means that it will overestimate the actual disk space used since it overcounts shared images.
E.g. if there are two teams each using the 5GB (made up numbers) big python image as their base and then include 1 GB of their own code in both their generators and solvers we would consider each image to be 6GB big, even though only 9GB of disk space are used by docker in total.

I don't think there is a good way to track the actual size of the image on disk, but I think tracking it like this also is the most fair since it won't lead to discrepancies based on what images already happen to be installed or what team was the first to use a particular base.

@Benezivas Benezivas merged commit ae6b727 into Algorithmic-Battle:4.0.0-rc Apr 29, 2023
@ImogenBits ImogenBits deleted the size_limit branch April 29, 2023 19:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants