-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Implement Docker best practices - Round 2 #6388
Implement Docker best practices - Round 2 #6388
Conversation
Signed-off-by: Victor Morales <[email protected]>
Signed-off-by: Victor Morales <[email protected]>
Signed-off-by: Victor Morales <[email protected]>
Signed-off-by: Victor Morales <[email protected]>
Signed-off-by: Victor Morales <[email protected]>
Signed-off-by: Victor Morales <[email protected]>
Signed-off-by: Victor Morales <[email protected]>
Signed-off-by: Victor Morales <[email protected]>
Hi @electrocucaracha I re-opened this as the docker builds don't work. I have a couple suggestions coming (just running a test build now), but would you be able to run |
@woody-apple I ran |
@electrocucaracha here's what fixes chip-build from my side, the nxp side still fails...
|
@woody-apple I'm not able to reproduce the error in my environment, do you have a log where I can take a look? |
Building again now, takes about 45 minutes. However TLDR is, it looks like the new references to specific architecture are breaking it... |
Actually failed fast:
It's failing because the cmake build doesn't match the docker VM architecture |
What about removing the |
Tried that. Had to rebuild cmake (per diffs) that wasn't arch specific to make it work... :\ |
Going to verify this... not sure it builds yet... |
nope, doesn't build...
|
This reverts commit 4f2c389.
Opening for @electrocucaracha given previous revert...
Problem
Hadolint is a tool which analyzes Dockerfile and provides applicable best practices. Version pinning reduce failures due to unanticipated changes in required packages. The CHIP integration Docker images don't have version pinning implemented.
Summary of Changes
These changes implement version pinning best practice as well as reduce some instructions like using
WORKDIR
Docker and--no-install-recommends
apt instructions