Skip to content
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

[benchmarks] Minimize the size of built images #5

Open
mcolmant opened this issue Dec 16, 2015 · 1 comment
Open

[benchmarks] Minimize the size of built images #5

mcolmant opened this issue Dec 16, 2015 · 1 comment
Assignees
Milestone

Comments

@mcolmant
Copy link
Contributor

Several optimisations can be applied to reduce the size of built images.

Docker commits each RUN command inside a new layer (which can take a non negligible amount of disk). It is thus important to clean (if possible) the image before the completion of the RUN command.
One example could be to delete all intermediate compilation files just after the compilation (and not in a separate RUN as done currently).

You could see each layer of an image by using the command docker history [tag/id].

A guide for the best practices to build docker images is available here

The current virtual size of PARSEC-3.0 is 25 GB and should be considerably reduced.

@mcolmant mcolmant assigned MensObscura and ouap and unassigned MensObscura and ouap Dec 16, 2015
@mcolmant mcolmant added this to the 1.0 milestone Dec 16, 2015
@rouvoy rouvoy assigned MensObscura and ouap and unassigned MensObscura Dec 16, 2015
@ouap
Copy link

ouap commented Jan 3, 2016

Should be ok now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants