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

Analyzer fails on alpine based containers #245

Open
crewone opened this issue Mar 5, 2024 · 5 comments
Open

Analyzer fails on alpine based containers #245

crewone opened this issue Mar 5, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@crewone
Copy link

crewone commented Mar 5, 2024

Describe the bug
Using alpine linux on a CI provider, the static analuzer fails.

DATADOG_STATIC_ANALYZER_URL: https://github.com/DataDog/datadog-static-analyzer/releases/latest/download/datadog-static-analyzer-x86_64-unknown-linux-gnu.zip

$ unzip /tmp/ddog-static-analyzer.zip -d /tmp
Archive:  /tmp/ddog-static-analyzer.zip
  inflating: datadog-static-analyzer-server
  inflating: datadog-static-analyzer
  inflating: datadog-export-rulesets
$ mv /tmp/datadog-static-analyzer /usr/local/datadog-static-analyzer
$ /usr/local/datadog-static-analyzer -i . -o /tmp/report.sarif -f sarif
Error relocating /lib/ld-linux-x86-64.so.2: unsupported relocation type 37
@juli1
Copy link
Collaborator

juli1 commented Mar 5, 2024

Thanks for reporting the issue, we are going to reproduce it and attempt to find a fix within the next few days.

@juli1 juli1 added the bug Something isn't working label Mar 5, 2024
@juli1
Copy link
Collaborator

juli1 commented Mar 5, 2024

I investigated further and even with gcompat the binary has issues running because of the dependencies with deno.

While it's not a priority for the immediate future to support Alpine we want to at least document how to run on Alpine.

@crewone
Copy link
Author

crewone commented Mar 6, 2024

Anything you can share here, to make it work?
Otherwise I will have to convert the container to something other than alpine.

@juli1
Copy link
Collaborator

juli1 commented Mar 6, 2024

Not at this time. I would recommend to use something else than alpine. The current version runs great on GitHub action which uses ubuntu:22.04

@Alex-Wauters
Copy link

The official datadog/ci build image is based on alpine however, could it be made to support static code analysis or provide a variant which has the latest version of ci + static code binaries?

https://hub.docker.com/r/datadog/ci

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants