question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Alpine linux support

See original GitHub issue

The current binary does not support Alpine Linux or RHEL 6. An alternative is to build a (fully) static binary.

Example command line to build:

native-image --static -jar log4j2-scanner-2.3.7.jar log4j2-scanner-2.3.7 -H:-CheckToolchain -H:+AllowIncompleteClasspath 

I suggest primarily a change on the documentation

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:10 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
lmalmeidacommented, Dec 20, 2021

BTW, for windows, it still has dependencies.

D:\temp>dumpbin /dependents log4j2-scan.exe
Microsoft (R) COFF/PE Dumper Version 14.30.30706.0
Copyright (C) Microsoft Corporation.  All rights reserved.


Dump of file log4j2-scan.exe

File Type: EXECUTABLE IMAGE

  Image has the following dependencies:

    VERSION.dll
    ADVAPI32.dll
    WS2_32.dll
    USERENV.dll
    MSWSOCK.dll
    USER32.dll
    KERNEL32.dll
    VCRUNTIME140.dll
    api-ms-win-crt-runtime-l1-1-0.dll
    api-ms-win-crt-environment-l1-1-0.dll
    api-ms-win-crt-heap-l1-1-0.dll
    api-ms-win-crt-string-l1-1-0.dll
    api-ms-win-crt-convert-l1-1-0.dll
    api-ms-win-crt-stdio-l1-1-0.dll
    api-ms-win-crt-filesystem-l1-1-0.dll
    api-ms-win-crt-math-l1-1-0.dll
    api-ms-win-crt-locale-l1-1-0.dll
    IPHLPAPI.DLL

  Summary

        2000 .data
        3000 .pdata
       14000 .rdata
        5000 .reloc
        4000 .rodata
      61F000 .svm_hea
      47A000 .text
1reaction
lmalmeidacommented, Dec 20, 2021

Seems to work. For reference, I’ve used containers to test it, similar to:

#FROM centos:6
FROM tomcat:alpine
COPY log4j2-scan-static /tmp
RUN /tmp/log4j2-scan-static /
Read more comments on GitHub >

github_iconTop Results From Across the Web

Release Branches - Alpine Linux
Branch Branch date Git Branch End of support Support level edge master • bug fixes v3.17 2022‑11‑22 3.17‑stable • 2024‑11‑22 bug fixes v3.16 2022‑05‑23 3.16‑stable •...
Read more >
Alpine Linux | endoflife.date
Release Released Security Support 3.17 3 weeks ago. (22 Nov 2022) Ends in 1 year and 11 months. (22 Nov... 3.16 6 months and 3...
Read more >
Alpine Linux - Wikipedia
Alpine Linux is a Linux distribution designed to be small, simple and secure. Alpine Linux uses musl, BusyBox and OpenRC instead of the...
Read more >
Alpine Linux (Alpine Linux) | Release lifecycle & end-of-life ...
There are several release branches for Alpine Linux available at the same time. Each May and November we make a release branch from...
Read more >
alpine - Official Image | Docker Hub
A minimal Docker image based on Alpine Linux with a complete package index and only 5 MB in size! ... Supported tags and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found