-
Notifications
You must be signed in to change notification settings - Fork 5
Add chainguard image for EU CRA fix #17
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
Merged
zahidblackduck
merged 11 commits into
main
from
dev/zahidblackduck/IDETECT-5086-eu-cra-fix-chainguard
Jul 9, 2026
Merged
Changes from 4 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
7bd92ad
update base image to chainguard
zahidblackduck 92c4cd2
add chainguard image dire template, revert alpine change
zahidblackduck e553ed2
update detect folder version for chainguard image
zahidblackduck fa5e12b
delete source as per review
zahidblackduck 7dea0e8
update chainguard source to latest internal
zahidblackduck 992943e
replace curl with wget
zahidblackduck 4edde18
update chainguard image to no-dev version
zahidblackduck e9eaafa
update docker templates with multi stage build using non-dev chainguard
zahidblackduck 276bdc9
update standard template file for accuracy required
zahidblackduck 0c7df61
update the multi stage build structure
zahidblackduck 13b2a20
cleanup comment
zahidblackduck File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
java/11/chainguard/latest/detect/template/buildless/Dockerfile
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| FROM artifactory.tools.duckutil.net:5010/blackduck.com/chainguard-base:latest | ||
|
|
||
| # Update, upgrade, and add required packages | ||
| RUN apk --no-cache update && \ | ||
| apk --no-cache upgrade && \ | ||
| apk --no-cache add bash curl | ||
|
|
||
| RUN apk --no-cache add openjdk-11-jre | ||
|
|
||
| ENV BDS_JAVA_HOME=/usr/lib/jvm/java-11-openjdk | ||
| ENV PATH="${BDS_JAVA_HOME}/bin:${PATH}" | ||
|
|
||
| ARG DETECT_SOURCE=<detectsource> | ||
|
|
||
| RUN if [ $(curl --silent -L -w '%{http_code}' -o /detect.jar --create-dirs ${DETECT_SOURCE}) != "200" ]; then echo "Unable to download Detect jar from ${DETECT_SOURCE}"; exit 1; fi | ||
|
|
||
| ENTRYPOINT ["java", "-jar", "/detect.jar", "--detect.source.path=/source", "--detect.output.path=/output", "--detect.phone.home.passthrough.invoked.by.image=true", "--detect.accuracy.required=NONE"] |
22 changes: 22 additions & 0 deletions
22
java/11/chainguard/latest/detect/template/standard/Dockerfile
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| FROM artifactory.tools.duckutil.net:5010/blackduck.com/chainguard-base:latest | ||
|
|
||
| # Update, upgrade, and add required packages | ||
| RUN apk --no-cache update && \ | ||
| apk --no-cache upgrade && \ | ||
| apk --no-cache add bash curl | ||
|
|
||
| # Required for standalone nuget inspector | ||
| # Note: gcompat is not needed - Wolfi uses glibc natively (Alpine uses musl, which needed gcompat) | ||
| RUN apk --no-cache add libstdc++ icu | ||
|
|
||
| # Java, use headless as it brings in less dependencies | ||
| RUN apk --no-cache add openjdk-11-jre | ||
|
|
||
| ENV BDS_JAVA_HOME=/usr/lib/jvm/java-11-openjdk | ||
| ENV PATH="${BDS_JAVA_HOME}/bin:${PATH}" | ||
|
|
||
| ARG DETECT_SOURCE=<detectsource> | ||
|
|
||
| RUN if [ $(curl --silent -L -w '%{http_code}' -o /detect.jar --create-dirs ${DETECT_SOURCE}) != "200" ]; then echo "Unable to download Detect jar from ${DETECT_SOURCE}"; exit 1; fi | ||
|
|
||
| ENTRYPOINT ["java", "-jar", "/detect.jar", "--detect.source.path=/source", "--detect.output.path=/output", "--detect.phone.home.passthrough.invoked.by.image=true"] | ||
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.
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.
same as previous comment