Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace Dockerfile with busybox as the base image #183

Closed
wants to merge 7 commits into from

Conversation

harrryr
Copy link
Contributor

@harrryr harrryr commented May 15, 2024

Issue #, if available:
Currently amazon linux is used as the base image for OTEL python distribution. This image contains a lot of unnecessary packages that inflate the image and also cause issues during high sev scans. Ideally we would like to use an image with minimal content.

Scratch was the base image that was initially proposed to be used with cpUtility installed to enable the cp command to copy the python image to the Opentelemetry operator volume. However, upon testing, although application signals was started without any issues, no telemetries were generated. (Failed Test).

Alternatively, busybox was used as the base image and was able to run application signals successfully. busybox is an image with common UNIX utilities installed and < 2MB in size.

Final size comparison:

  • Amazon Linux: 135.65 MB
  • Busybox: 46.19 MB
  • Scratch: 21.43MB (Working image will likely be similar to busybox)

Test run: https://github.com/aws-observability/aws-otel-python-instrumentation/actions/runs/9090440702
Note: Test run above is failing in the trace validation step due to a bug in the way the release testing is ran for this repository. Verified that telemetry is generated with proper traces. Will be fixed in subsequent PR

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@harrryr harrryr requested a review from a team as a code owner May 15, 2024 15:22
@harrryr harrryr force-pushed the update-dockerfile branch from a232099 to ab73636 Compare May 15, 2024 15:31
@harrryr harrryr requested a review from a team as a code owner June 19, 2024 17:35
@harrryr harrryr closed this Jun 19, 2024
@thpierce thpierce deleted the update-dockerfile branch August 20, 2024 03:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant