shrink container size #23

Open
opened 2024-01-04 11:43:46 +00:00 by jon_nfc · 10 comments
jon_nfc commented 2024-01-04 11:43:46 +00:00 (Migrated from gitlab.com)

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

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_
jon_nfc commented 2024-01-04 11:45:56 +00:00 (Migrated from gitlab.com)

changed the description

changed the description
jon_nfc commented 2024-01-05 09:54:15 +00:00 (Migrated from gitlab.com)

mentioned in commit 5aba6b96dc

mentioned in commit 5aba6b96dc37c0ffb5611dd7f7842701efd000c8
jon_nfc commented 2024-01-05 09:54:30 +00:00 (Migrated from gitlab.com)

added 5m of time spent

added 5m of time spent
jon_nfc commented 2024-01-05 09:58:48 +00:00 (Migrated from gitlab.com)

mentioned in commit 537e7b6b6a

mentioned in commit 537e7b6b6ade8375041b2bb5d0be458db5027c90
jon_nfc commented 2024-01-05 10:05:49 +00:00 (Migrated from gitlab.com)

changed the description

changed the description
jon_nfc commented 2024-01-14 13:56:49 +00:00 (Migrated from gitlab.com)

mentioned in merge request !184

mentioned in merge request !184
jon_nfc commented 2024-01-14 16:56:51 +00:00 (Migrated from gitlab.com)

assigned to @jon_nfc

assigned to @jon_nfc
jon_nfc commented 2024-01-14 17:00:25 +00:00 (Migrated from gitlab.com)

mentioned in commit 4fcb5ee5ea

mentioned in commit 4fcb5ee5ea75840768fe81009d6bf761ddb0d0b6
jon_nfc commented 2024-01-14 17:00:25 +00:00 (Migrated from gitlab.com)

mentioned in commit c5f9ae33a5

mentioned in commit c5f9ae33a556e9ac5391505bf3d2cb184f7b69f7
jon_nfc commented 2024-01-14 17:00:25 +00:00 (Migrated from gitlab.com)

mentioned in commit 4c69d8e2e5

mentioned in commit 4c69d8e2e56cb63d8890a2a70d53bac782ce3df3
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: docker/execution_environment#23
No description provided.