ukaea / openmc_workshop

A selection of resources for learning openmc with particular focus on simulations relevant for fusion energy
https://slides.com/openmc_workshop/neutronics_workshop#/
38 stars 18 forks source link

reducing size of the dockerfile #229

Closed shimwell closed 3 years ago

shimwell commented 3 years ago

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 build

Potentially we can delete some folders from these compiles

Any tips from the experts always welcome @AI-Pranto @pshriwise

shimwell commented 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

shimwell commented 3 years ago

The autoremove and apt-clean did not reduce the dockerimage size by enough https://github.com/ukaea/openmc_workshop/actions/runs/518817705

shimwell commented 3 years ago

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.