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

Rebuild currency service Dockerfile with alpine #687

Merged
merged 8 commits into from
Jan 16, 2023

Conversation

svrnm
Copy link
Member

@svrnm svrnm commented Jan 14, 2023

Changes

This should fix #681, #679 partially and #574: Alpine linux provides a grpc-dev package that can be used to skip all the dependencies for building opentelemetry-cpp

This brings down the build time to 2m 30s on an intel macbook pro (2015)

Merge Requirements

  • CHANGELOG.md updated to document new feature additions
  • Appropriate documentation updates in the docs folder

Signed-off-by: Severin Neumann <severin.neumann@altmuehlnet.de>
@svrnm svrnm requested a review from a team January 14, 2023 22:01
svrnm added 3 commits January 14, 2023 23:03
Signed-off-by: Severin Neumann <severin.neumann@altmuehlnet.de>
Signed-off-by: Severin Neumann <severin.neumann@altmuehlnet.de>
Signed-off-by: Severin Neumann <severin.neumann@altmuehlnet.de>
@cartersocha
Copy link
Contributor

This made a HUGE difference on my machine. 43 vs. 407 seconds on my m2 mac book air. Thank you so much @svrnm

@austinlparker we should release a new version immediately after we merge this and test the new build performance. Then maybe we can add another quick release for arm64 support unless other services continue to block us.

I'd be curious if we could do something similar for the other slow services? fyi @GaryPWhite

@cartersocha cartersocha requested a review from lalitb January 14, 2023 23:25
@austinlparker
Copy link
Member

Wouldn't this also work for the rust image since its the same libs? Worth a shot.

Copy link
Member

@lalitb lalitb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nicely done. Thanks.

svrnm and others added 4 commits January 15, 2023 18:22
Signed-off-by: svrnm <neumanns@cisco.com>
Signed-off-by: svrnm <neumanns@cisco.com>
Signed-off-by: svrnm <neumanns@cisco.com>
@svrnm
Copy link
Member Author

svrnm commented Jan 15, 2023

Additional update: To reduce the final image size by ~300 MB (down to 65 on arm64) I turned it into a multi-stage build.

@cartersocha cartersocha merged commit 7216fd4 into open-telemetry:main Jan 16, 2023
@mviitane
Copy link
Member

Thanks @svrnm, this was an amazing improvement!

jmichalak9 pushed a commit to jmichalak9/opentelemetry-demo that referenced this pull request Mar 22, 2024
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.

Optimize c++ currency service build time
7 participants