-
Notifications
You must be signed in to change notification settings - Fork 93
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
Docker Diet: shrink images 80% and CI runtimes 50% #140
Merged
chrispsommers
merged 55 commits into
sonic-net:main
from
chrispsommers:chris-saithrift4
Jul 21, 2022
Merged
Docker Diet: shrink images 80% and CI runtimes 50% #140
chrispsommers
merged 55 commits into
sonic-net:main
from
chrispsommers:chris-saithrift4
Jul 21, 2022
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…to merge eventually. Meanwhile can locally modify SAI makefiles.
…n dist tarball to /usr/lib inside container so can be extracted for deployment to a host.
…ss_spec, comments.
…brary image and selectively copying to BMV2 builder/runtime image based on available p4lang docker image.
chrispsommers
changed the title
Optimize Docker images to decrease sizes and speed up CI.
Optimize Docker images to shrink files and CI runtimes
Jul 2, 2022
chrispsommers
changed the title
Optimize Docker images to shrink files and CI runtimes
Docker Diet: shrink images 75% and CI runtimes 50%
Jul 2, 2022
…any dockerfile change.
chrispsommers
changed the title
Docker Diet: shrink images 75% and CI runtimes 50%
Docker Diet: shrink images 80% and CI runtimes 50%
Jul 3, 2022
…eproject/SAI#1514. Once merged, we can change back to upstream branch of SAI.
…mplates which add static_cast to avoid type mismatches due to sai extensions.
…num Long error. TODO: P4RT libs missing, otherwise sai-thrift server builds.
…odel (P4RUntime SetForwardingPipelineRequest) to allow explicit switch intialization via P4Runtime. Removed sudo from most Make commands. READMEs.
… Delete stray file.
…egress port = ingress port; comments).
…. Executes chmod as required. Permanent fix will require some Docker mods.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Refactored into multiple dockerfiles with smaller single-purpose images. Total size shrunk from 12.4GB initial image to 2.6GB, CI build time is <2 min instead of 4min mainly due to reduced docker pull times.
Temporary - this draft PR has modified p4 code in dash_pipeline.p4 to loop packets back out same port by default, may change before finalizing.