codacy / codacy-coverage-reporter

Multi-language coverage reporter for Codacy

Home Page:https://www.codacy.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[TS-548] Support running `get.sh` script on ARM machines

marvinruder opened this issue · comments

(raising a new issue here because I cannot reopen the closed issue #327)

Operating System

Linux aaa9b2ded5ac 5.15.0-79-generic #86-Ubuntu SMP Mon Jul 10 16:11:29 UTC 2023 aarch64 aarch64 aarch64 GNU/Linux

JDK

openjdk version "17.0.8" 2023-07-18
OpenJDK Runtime Environment Temurin-17.0.8+7 (build 17.0.8+7)
OpenJDK 64-Bit Server VM Temurin-17.0.8+7 (build 17.0.8+7, mixed mode, sharing)

Steps to reproduce

  1. Run curl -Ls https://coverage.codacy.com/get.sh > /usr/local/bin/codacy-coverage
  2. Run chmod +x /usr/local/bin/codacy-coverage
  3. Run codacy-coverage --help

Expected Behavior

codacy-coverage can be executed, help message is displayed.

Actual Behavior

/usr/local/bin/codacy-coverage: line 240: /root/.cache/codacy/coverage-reporter/13.13.7/codacy-coverage-reporter: cannot execute binary file: Exec format error

Reproducible Test Case

Build a container image using the following Dockerfile on an ARM architecture machine:

FROM eclipse-temurin:17-jre

# Download and extract Codacy coverage reporter
RUN \
  curl -Ls https://coverage.codacy.com/get.sh > /usr/local/bin/codacy-coverage && \
  chmod +x /usr/local/bin/codacy-coverage && \
  codacy-coverage download && \
  codacy-coverage --help

ENTRYPOINT [ "codacy-coverage" ]

Internal ticket created : TS-548