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

Profile Docker image build #20

Open
3 tasks
Tracked by #21
kdmccormick opened this issue Sep 16, 2022 · 2 comments
Open
3 tasks
Tracked by #21

Profile Docker image build #20

kdmccormick opened this issue Sep 16, 2022 · 2 comments
Labels
discovery Pre-work to determine if an idea is feasible tutor Requires a change to Tutor

Comments

@kdmccormick
Copy link
Member

kdmccormick commented Sep 16, 2022

Backgroud

I'd like to "profile" a docker build. The ideal output would include elapsed time, download size, and final layer size for every command in the Dockerfile. End goal is to find the best optimizations for Tutor's Dockerfiles without relying purely on my hunches about what I believe are the slowest parts.

Subtasks

  • Profile & analyze the build for tutor images build openedx and tutor dev dc build lms, which build the opendx and openedx-dev images, respectively.
  • Link to any profiling artifacts here
  • Preate follow-up tickets for applying optimizations and/or diving deeper into analysis.
@kdmccormick kdmccormick added the discovery Pre-work to determine if an idea is feasible label Sep 16, 2022
@kdmccormick
Copy link
Member Author

From Jeremy B:

I've briefly used https://github.com/wagoodman/dive and found it pretty useful. And https://github.com/hadolint/hadolint gives some useful tips also (but won't give you metrics).
For elapsed time, https://keeler.github.io/docker-build-profiling/ may be a good starting point

@kdmccormick
Copy link
Member Author

Directly relates to #6

@kdmccormick kdmccormick transferred this issue from openedx-unsupported/wg-developer-experience Mar 28, 2024
@kdmccormick kdmccormick added the tutor Requires a change to Tutor label Mar 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discovery Pre-work to determine if an idea is feasible tutor Requires a change to Tutor
Projects
No open projects
Status: Refined
Development

No branches or pull requests

1 participant