shrink container size

reduce the size of the container.

possible solution

  • use container debian:sid-slim first removing all that is not required.
  • install desired python version from compiled python. (use build container and copy binaries over)
  • run tasks to setup ansible-ee env
  • ensure no extra software included

goal is to keep debian as there are too many dependencies on this os, and to have the most up to date software in a container that is as small as possible.

Other Notes

ref: https://gitlab.com/nofusscomputing/projects/ansible/execution_environment/-/jobs/5867262553

when building using debian-slim image gcc doesn't appear to be installed.

Doing a test, by running docker build cache then will attempt slim container build

Edited by Jon