-
Notifications
You must be signed in to change notification settings - Fork 10
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
fix(dockerutil): GetImageMetadata: detect correct usr lib dir based on os release #127
Conversation
if val, ok := os.LookupEnv("CODER_TEST_INTEGRATION"); !ok || val != "1" { | ||
t.Skip("integration tests are skipped unless CODER_TEST_INTEGRATION=1") | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
review: moved to this method of skipping the tests, as the build directives were annoying
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good other than my concern about host /usr/lib
dir being autodetected
8b92093
to
5d58aeb
Compare
Rebased on main with the correct author and GPG signature. |
@@ -209,7 +209,7 @@ jobs: | |||
category: "Trivy" | |||
|
|||
- name: Upload Trivy scan results as an artifact | |||
uses: actions/upload-artifact@v3 | |||
uses: actions/upload-artifact@v4 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
review: required for CI to pass
Updates #126
We had been mounting GPU libraries into the destination
/usr/lib
inside the inner container by default. This doesn't hold true for Redhat-based distributions, who use/usr/lib64
instead./etc/os-release
inside the inner containerCODER_USR_LIB_DIR
if not specified.CODER_INNER_USR_LIB_DIR
.