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

Adoptium Alpine image need strace installing #3452

Closed
andrew-m-leonard opened this issue Mar 6, 2024 · 10 comments
Closed

Adoptium Alpine image need strace installing #3452

andrew-m-leonard opened this issue Mar 6, 2024 · 10 comments
Assignees
Labels

Comments

@andrew-m-leonard
Copy link
Contributor

To support enabling SBOM strace, we need the Adoptium Alpine containers provisioned with strace

@sxa
Copy link
Member

sxa commented Mar 8, 2024

It looks like you already added this in 1e3dfa0

Have you seen something to suggest it's not in place during the build?

$ docker run -it adoptopenjdk/alpine3_build_image strace --version
strace -- version 5.14
Copyright (c) 1991-2021 The strace developers <https://strace.io>.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Optional features enabled: stack-trace=libdw stack-demangle no-m32-mpers no-mx32-mpers
$ 

@andrew-m-leonard
Copy link
Contributor Author

@sxa ah, just tried again, and currently failing with disk space issue, on dockerhost-skytap-ubuntu2204-x64-1:
https://ci.adoptium.net/job/build-scripts/job/jobs/job/jdk21u/job/jdk21u-alpine-linux-x64-temurin/53/console

12:05:33  mktemp: (null): No space left on device

@andrew-m-leonard
Copy link
Contributor Author

Running a test on the other node: https://ci.adoptium.net/job/build-scripts/job/jobs/job/jdk21u/job/jdk21u-alpine-linux-x64-temurin/54/console

@andrew-m-leonard
Copy link
Contributor Author

Looks like it can't find "rpm", does that exist on Alpine ? :

12:14:45  /home/jenkins/workspace/build-scripts/jobs/jdk21u/jdk21u-alpine-linux-x64-temurin/sbin/build.sh: line 658: rpm: command not found

@sxa
Copy link
Member

sxa commented Mar 8, 2024

Looks like it can't find "rpm", does that exist on Alpine ? :

No it's not rpm based.

@sxa
Copy link
Member

sxa commented Mar 8, 2024

@sxa ah, just tried again, and currently failing with disk space issue, on dockerhost-skytap-ubuntu2204-x64-1: https://ci.adoptium.net/job/build-scripts/job/jobs/job/jdk21u/job/jdk21u-alpine-linux-x64-temurin/53/console

12:05:33  mktemp: (null): No space left on device

Sorted - stuff was being left over by some attempts to rebuild the build images.
Cache cleared with docker buildx prune - 55GB free now

@andrew-m-leonard
Copy link
Contributor Author

Looks like it can't find "rpm", does that exist on Alpine ? :

No it's not rpm based.

Ok, thanks, we need to update the strace analysis to discover packages the "Alpine way.."

@sxa
Copy link
Member

sxa commented Mar 8, 2024

Ok, thanks, we need to update the strace analysis to discover packages the "Alpine way.."

The equivalent of rpm -qf is apk info --who-owns so hopefully that will be most of what's needed to make it work :-)

@andrew-m-leonard andrew-m-leonard self-assigned this Mar 8, 2024
@sxa
Copy link
Member

sxa commented Apr 4, 2024

@andrew-m-leonard You've moved this to Q2 but I'm not sure there's any further activity from the infrastructure side here. Do you have a separate issue to cover making the strace processes work with apk?

@andrew-m-leonard
Copy link
Contributor Author

yes correct, i've raised this adoptium/temurin-build#3750

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

No branches or pull requests

2 participants