sonar-scanner-cli-docker
sonar-scanner-cli-docker copied to clipboard
ERROR: unable to select packages: shellcheck (no such package)
Please ensure your issue adheres to the following guidelines:
- [x] Please check the problem is not already reported
- [x] Please include enough details to reproduce the problem: the command executed, the host platform, error messages or relevant logs
I cannot build the docker image on mac with m1 chip
cd 4/
docker build -t sonar-scanner-cli-m1 .
Result:
[+] Building 4.1s (8/10)
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 37B 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [internal] load metadata for docker.io/library/alpine:3.14 1.4s
=> [auth] library/alpine:pull token for registry-1.docker.io 0.0s
=> [1/5] FROM docker.io/library/alpine:3.14@sha256:06b5d462c92fc39303e6363c65e074559f8d6b1363250027ed5053557e3398c5 0.0s
=> [internal] load build context 0.0s
=> => transferring context: 62B 0.0s
=> CACHED [2/5] WORKDIR /opt 0.0s
=> ERROR [3/5] RUN set -eux; addgroup -S -g 1000 scanner-cli; adduser -S -D -u 1000 -G scanner-cli scanner-cli; a 2.7s
------
> [3/5] RUN set -eux; addgroup -S -g 1000 scanner-cli; adduser -S -D -u 1000 -G scanner-cli scanner-cli; apk add --no-cache --virtual build-dependencies wget unzip gnupg; apk add --no-cache git python3 py-pip bash shellcheck 'nodejs>12' openjdk11-jre curl musl-locales musl-locales-lang; wget -U "scannercli" -q -O /opt/sonar-scanner-cli.zip https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-${SONAR_SCANNER_VERSION}.zip; wget -U "scannercli" -q -O /opt/sonar-scanner-cli.zip.asc https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-${SONAR_SCANNER_VERSION}.zip.asc; for server in $(shuf -e hkps://keys.openpgp.org hkps://keyserver.ubuntu.com) ; do gpg --batch --keyserver "${server}" --recv-keys 679F1EE92B19609DE816FDE81DB198F93525EC1A && break || : ; done; gpg --verify /opt/sonar-scanner-cli.zip.asc /opt/sonar-scanner-cli.zip; unzip sonar-scanner-cli.zip; rm sonar-scanner-cli.zip sonar-scanner-cli.zip.asc; mv sonar-scanner-${SONAR_SCANNER_VERSION} /opt/sonar-scanner; pip install --no-cache-dir --upgrade pip; pip install --no-cache-dir pylint; apk del --purge build-dependencies; mkdir -p "/usr/src" "/opt/sonar-scanner/.sonar" "/opt/sonar-scanner/.sonar/cache"; chown -R scanner-cli:scanner-cli "/opt/sonar-scanner" "/usr/src"; chmod -R 777 "/usr/src" "/opt/sonar-scanner/.sonar";:
#7 0.231 + addgroup -S -g 1000 scanner-cli
#7 0.237 + adduser -S -D -u 1000 -G scanner-cli scanner-cli
#7 0.247 + apk add --no-cache --virtual build-dependencies wget unzip gnupg
#7 0.258 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/main/aarch64/APKINDEX.tar.gz
#7 0.657 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/community/aarch64/APKINDEX.tar.gz
#7 1.236 (1/32) Installing libunistring (0.9.10-r1)
#7 1.282 (2/32) Installing libidn2 (2.3.1-r0)
#7 1.314 (3/32) Installing wget (1.21.1-r1)
#7 1.346 (4/32) Installing unzip (6.0-r9)
#7 1.379 (5/32) Installing libgpg-error (1.42-r0)
#7 1.400 (6/32) Installing libassuan (2.5.5-r0)
#7 1.413 (7/32) Installing libcap (2.50-r0)
#7 1.441 (8/32) Installing libffi (3.3-r2)
#7 1.460 (9/32) Installing libintl (0.21-r0)
#7 1.479 (10/32) Installing libblkid (2.37.4-r0)
#7 1.514 (11/32) Installing libmount (2.37.4-r0)
#7 1.535 (12/32) Installing pcre (8.44-r0)
#7 1.562 (13/32) Installing glib (2.68.3-r0)
#7 1.639 (14/32) Installing ncurses-terminfo-base (6.2_p20210612-r0)
#7 1.660 (15/32) Installing ncurses-libs (6.2_p20210612-r0)
#7 1.693 (16/32) Installing libgcrypt (1.9.4-r0)
#7 1.761 (17/32) Installing libsecret (0.20.4-r1)
#7 1.792 (18/32) Installing pinentry (1.1.1-r0)
#7 1.812 Executing pinentry-1.1.1-r0.post-install
#7 1.814 (19/32) Installing libbz2 (1.0.8-r1)
#7 1.835 (20/32) Installing gmp (6.2.1-r1)
#7 1.886 (21/32) Installing nettle (3.7.3-r0)
#7 1.926 (22/32) Installing p11-kit (0.23.22-r0)
#7 1.956 (23/32) Installing libtasn1 (4.17.0-r0)
#7 1.975 (24/32) Installing gnutls (3.7.1-r0)
#7 2.025 (25/32) Installing libksba (1.5.1-r0)
#7 2.052 (26/32) Installing gdbm (1.19-r0)
#7 2.070 (27/32) Installing libsasl (2.1.28-r0)
#7 2.090 (28/32) Installing libldap (2.4.58-r0)
#7 2.124 (29/32) Installing npth (1.6-r0)
#7 2.138 (30/32) Installing sqlite-libs (3.35.5-r0)
#7 2.182 (31/32) Installing gnupg (2.2.31-r0)
#7 2.274 (32/32) Installing build-dependencies (20220629.134059)
#7 2.274 Executing busybox-1.33.1-r7.trigger
#7 2.291 OK: 26 MiB in 46 packages
#7 2.309 + apk add --no-cache git python3 py-pip bash shellcheck 'nodejs>12' openjdk11-jre curl musl-locales musl-locales-lang
#7 2.312 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/main/aarch64/APKINDEX.tar.gz
#7 2.475 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/community/aarch64/APKINDEX.tar.gz
#7 2.647 ERROR: unable to select packages:
#7 2.660 shellcheck (no such package):
#7 2.660 required by: world[shellcheck]
------
executor failed running [/bin/sh -c set -eux; addgroup -S -g ${GID} scanner-cli; adduser -S -D -u ${UID} -G scanner-cli scanner-cli; apk add --no-cache --virtual build-dependencies wget unzip gnupg; apk add --no-cache git python3 py-pip bash shellcheck 'nodejs>12' openjdk11-jre curl musl-locales musl-locales-lang; wget -U "scannercli" -q -O /opt/sonar-scanner-cli.zip https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-${SONAR_SCANNER_VERSION}.zip; wget -U "scannercli" -q -O /opt/sonar-scanner-cli.zip.asc https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-${SONAR_SCANNER_VERSION}.zip.asc; for server in $(shuf -e hkps://keys.openpgp.org hkps://keyserver.ubuntu.com) ; do gpg --batch --keyserver "${server}" --recv-keys 679F1EE92B19609DE816FDE81DB198F93525EC1A && break || : ; done; gpg --verify /opt/sonar-scanner-cli.zip.asc /opt/sonar-scanner-cli.zip; unzip sonar-scanner-cli.zip; rm sonar-scanner-cli.zip sonar-scanner-cli.zip.asc; mv sonar-scanner-${SONAR_SCANNER_VERSION} ${SONAR_SCANNER_HOME}; pip install --no-cache-dir --upgrade pip; pip install --no-cache-dir pylint; apk del --purge build-dependencies; mkdir -p "${SRC_PATH}" "${SONAR_USER_HOME}" "${SONAR_USER_HOME}/cache"; chown -R scanner-cli:scanner-cli "${SONAR_SCANNER_HOME}" "${SRC_PATH}"; chmod -R 777 "${SRC_PATH}" "${SONAR_USER_HOME}";]: exit code: 1