Open schurzi opened 10 months ago
with #43 the Oracle image is now down to 400MB
REPOSITORY TAG IMAGE ID CREATED SIZE
ghcr.io/dev-sec/docker-oracle7-ansible latest 130638d1981c 6 minutes ago 400 MB
Maybe giving slim a shot could be worth.
REPOSITORY TAG IMAGE ID CREATED SIZE
debian-12.slim latest 6e9b12ae9d90 11 minutes ago 46.8MB
debian-12 latest 42ad1dc660ef 21 minutes ago 974MB
I've not verified the full functionality of the "slimmed" image just yet, but I'd be eager to try it out in the next couple of days.
There is also some documentation for a Github Actions Integration. What do you think?
The tool looks very promising. From the documentation I understand that we need to give it some commands to asses what contents of the containers are actually needed. This might be a problem, since we are using the containers to test all our Automation code and thus we would need to run ALL automation code to generate the Images, or am I wrong?
we need to give it some commands to asses what contents of the containers are actually needed
I have not looked to deep into it just yet, but I was actually just hoping that it would work "out-of-the-box". The xray command could also be very helpful in reverse engineering what's going to get removed.
I will give it a shot and test it out properly with one image in the next couple of days, also referencing the newly build in one of the automation jobs to see if this would work without major effort.
We are using these images for CI testing. These tests run very often, so having small images pays in time and also in ressource conservation. We should aim to create images of minimal size.
For refference these are the current sizes: