mirror of
https://github.com/super-linter/super-linter.git
synced 2024-12-21 20:22:11 -05:00
build: add glibc via gcompat layer (#5334)
This commit is contained in:
parent
1eea6127e1
commit
252a980961
4 changed files with 3 additions and 29 deletions
|
@ -207,13 +207,9 @@ RUN apk add --no-cache --virtual .perl-build-deps \
|
|||
#################
|
||||
# Install glibc #
|
||||
#################
|
||||
# Source: https://alpine-pkgs.sgerrand.com/sgerrand.rsa.pub
|
||||
# Store the key here because the above host is sometimes down, and breaks our builds
|
||||
COPY dependencies/sgerrand.rsa.pub /etc/apk/keys/sgerrand.rsa.pub
|
||||
ARG GLIBC_VERSION='2.34-r0'
|
||||
COPY scripts/install-glibc.sh /
|
||||
RUN --mount=type=secret,id=GITHUB_TOKEN /install-glibc.sh \
|
||||
&& rm -rf /install-glibc.sh /sgerrand.rsa.pub
|
||||
&& rm -rf /install-glibc.sh
|
||||
|
||||
##################
|
||||
# Install chktex #
|
||||
|
|
9
dependencies/sgerrand.rsa.pub
vendored
9
dependencies/sgerrand.rsa.pub
vendored
|
@ -1,9 +0,0 @@
|
|||
-----BEGIN PUBLIC KEY-----
|
||||
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEApZ2u1KJKUu/fW4A25y9m
|
||||
y70AGEa/J3Wi5ibNVGNn1gT1r0VfgeWd0pUybS4UmcHdiNzxJPgoWQhV2SSW1JYu
|
||||
tOqKZF5QSN6X937PTUpNBjUvLtTQ1ve1fp39uf/lEXPpFpOPL88LKnDBgbh7wkCp
|
||||
m2KzLVGChf83MS0ShL6G9EQIAUxLm99VpgRjwqTQ/KfzGtpke1wqws4au0Ab4qPY
|
||||
KXvMLSPLUp7cfulWvhmZSegr5AdhNw5KNizPqCJT8ZrGvgHypXyiFvvAH5YRtSsc
|
||||
Zvo9GI2e2MaZyo9/lvb+LbLEJZKEQckqRj4P26gmASrZEPStwc+yqy1ShHLA0j6m
|
||||
1QIDAQAB
|
||||
-----END PUBLIC KEY-----
|
|
@ -2,20 +2,7 @@
|
|||
|
||||
set -euo pipefail
|
||||
|
||||
url=$(
|
||||
set -euo pipefail
|
||||
curl -s \
|
||||
-H "Accept: application/vnd.github+json" \
|
||||
-H "Authorization: Bearer $(cat /run/secrets/GITHUB_TOKEN)" \
|
||||
"https://api.github.com/repos/sgerrand/alpine-pkg-glibc/releases/tags/${GLIBC_VERSION}" |
|
||||
jq --arg name "glibc-${GLIBC_VERSION}.apk" -r '.assets | .[] | select(.name | contains($name)) | .url'
|
||||
)
|
||||
curl --retry 5 --retry-delay 5 -sL -o "glibc-${GLIBC_VERSION}.apk" \
|
||||
-H "Accept: application/octet-stream" \
|
||||
-H "Authorization: Bearer $(cat /run/secrets/GITHUB_TOKEN)" \
|
||||
"${url}"
|
||||
apk add --no-cache --force-overwrite "glibc-${GLIBC_VERSION}.apk"
|
||||
rm "glibc-${GLIBC_VERSION}.apk"
|
||||
apk add --no-cache gcompat
|
||||
|
||||
# Install zlib
|
||||
apk add --no-cache --virtual .glibc-build-deps \
|
||||
|
|
|
@ -39,9 +39,9 @@ control "super-linter-installed-packages" do
|
|||
"coreutils",
|
||||
"curl",
|
||||
"file",
|
||||
"gcompat",
|
||||
"git-lfs",
|
||||
"git",
|
||||
"glibc",
|
||||
"go",
|
||||
"jq",
|
||||
"libxml2-utils",
|
||||
|
|
Loading…
Reference in a new issue