mirror of
https://github.com/floci-io/floci.git
synced 2026-11-23 06:00:46 -05:00
The AWS CLI v2 install ships 26 MB of `aws <command> help` example pages that were never viewable in this image: help rendering needs groff or mandoc and ubi9-minimal has neither, so `aws sqs help` already failed before this change. Tab completion has no user inside a container either, so aws_completer (9 MB), its ac.index database (21 MB) and the /usr/bin symlink the installer creates go with it. The command reference the CLI reads at run time (dist/awscli/data) stays. pip and setuptools stay: the image documents pip and init hooks use it to install packages. The system Python loses only build-time extras nothing imports at run time: the optimised .pyc variants, lib2to3 and ensurepip (removed with a python3 one-liner, ubi9-minimal has no find). awslocal's mode is set in the COPY instead of a chmod layer. Measured on arm64 on top of #3085: compat image 924 to 839 MB on disk, 214.0 to 197.7 MB gzip; /usr/local/aws-cli 264 to 209 MB. Verified: aws 2.36.24, `aws sqs list-queues` still resolves its model, pip3 installs a package, boto3 1.42.97 import with json, ssl and sqlite3, awslocal, init hooks calling all three, the container healthy in 5 s, and the four endpoint-resolution checks compatibility.yml runs against this image.