File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 66 - if : runner.os == 'Linux'
77 run : |
88 if test -d /__e && grep -q '^ID=alpine$' /etc/os-release; then
9- TMPDIR =$(mktemp -d)
10- apk add --root "$TMPDIR " --repositories-file /etc/apk/repositories --allow-untrusted --no-cache --no-scripts --initdb -- docker-cli
11- "$TMPDIR /usr/bin/docker" run --rm --user 0:0 --volume /:/hostfs --entrypoint /usr/sbin/chroot "$("$TMPDIR /usr/bin/docker" inspect "$(hostname)" --format "{{ .Image }}")" /hostfs /bin/bash -xc \
9+ ROOT =$(mktemp -d)
10+ apk add --root "$ROOT " --repositories-file /etc/apk/repositories --allow-untrusted --no-cache --no-scripts --initdb -- docker-cli
11+ "$ROOT /usr/bin/docker" run --rm --user 0:0 --volume /:/hostfs --entrypoint /usr/sbin/chroot "$("$ROOT /usr/bin/docker" inspect "$(hostname)" --format "{{ .Image }}")" /hostfs /bin/bash -xc \
1212 'exec sudo -u "$(stat -c "%U" -- "$7")" -- /bin/bash -xc "$@"' -- \
1313 'find "$5" -type f -executable -name node -not -path "*_alpine/*" -print0 | xargs -0 -n 1 -- /bin/bash -xc "$@"' -- \
1414 'exec docker run --rm --volume /:/hostfs --entrypoint /bin/sh "docker.io/library/node:$("$4" -e "console.log(process.versions.node)")-alpine" -xc "$@"' -- \
1515 'apk add --no-cache -- patchelf && cp "$(which node)" "/hostfs$2" && apk info --quiet --contents libgcc libstdc++ | xargs -- tar -cC / -T- | tar -xvC "$(dirname "$(dirname "/hostfs$2")")" --strip-components 1 && patchelf --set-rpath \$ORIGIN/../lib "/hostfs$2" && ldd "/hostfs$2"' -- \
16- "$("$TMPDIR /usr/bin/docker" inspect "$(hostname)" --format '{{ range.Mounts }}{{ if eq .Destination "/__e" }}{{ .Source }}{{ end }}{{ end }}')"
17- rm -rf -- "$TMPDIR "
16+ "$("$ROOT /usr/bin/docker" inspect "$(hostname)" --format '{{ range.Mounts }}{{ if eq .Destination "/__e" }}{{ .Source }}{{ end }}{{ end }}')"
17+ rm -rf -- "$ROOT "
1818 sed -i -e 's/^ID=alpine$/ID=linux/' -- /etc/os-release
1919 fi
2020 shell : sh
You can’t perform that action at this time.
0 commit comments