Closed shimwell closed 3 years ago
I have just added apt-get autoremove
and apt-get clean
in a few places and am hoping that will help a little bit
The autoremove and apt-clean did not reduce the dockerimage size by enough https://github.com/ukaea/openmc_workshop/actions/runs/518817705
Delighted to see that the dockerfile is now once again building on github actions.
https://github.com/ukaea/openmc_workshop/actions
I think this experience was useful for when we get around to updating the openmc dockerfile next time.
It appears that now we are including double-down in the dagmc compile that the github action now runs out of space
for example these two github actions failed due to no space left on the device. https://github.com/ukaea/openmc_workshop/actions/runs/518581916 https://github.com/ukaea/openmc_workshop/actions/runs/518476822
So I was wondering if we can do something like this in a few more places https://github.com/ukaea/openmc_workshop/blob/b74067bf9ed35bdd1674a9c6109ff084fd119e23/Dockerfile#L149 These lines
rm -rf /DAGMC/DAGMC /DAGMC/build
delete some of the unessecary files after the buildPotentially we can delete some folders from these compiles
Any tips from the experts always welcome @AI-Pranto @pshriwise