alpine-docker / git

A useful simple git container running in alpine linux, especially for tiny linux distro, such as RancherOS, which don't have package manager.
Apache License 2.0
155 stars 86 forks source link

curl does not work on latest #59

Closed pluralistix closed 1 year ago

pluralistix commented 1 year ago

Hey,

presumably because of https://github.com/alpine-docker/git/issues/58 , e.g. curl does not work anymore

❯ docker run --entrypoint sh alpine/git:latest -c 'apk add --no-cache curl;curl -V; curl https://www.google.com' | grep -E "^(fetch|curl|WARNING)"
fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/main/x86_64/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/community/x86_64/APKINDEX.tar.gz
curl 8.0.1 (x86_64-alpine-linux-musl) libcurl/7.83.1 OpenSSL/1.1.1s zlib/1.2.12 brotli/1.0.9 nghttp2/1.47.0
WARNING: curl and libcurl versions do not match. Functionality may be affected.
curl: (48) An unknown option was passed in to libcurl

Is there anyone working on https://github.com/alpine-docker/git/issues/58 ?

WTPascoe commented 1 year ago

Installing curl-dev resolves this for us, but it's an extra package we'd rather not have to include.

pluralistix commented 1 year ago

curl-dev is installed anyway ;)

❯ docker run --entrypoint sh alpine/git:latest -c 'apk search libcurl; apk update >/dev/null 2>&1 && apk upgrade >/dev/null 2>&1; apk search libcurl'
libcurl-7.83.1-r4
curl-dev-7.83.1-r4
libcurl-8.0.1-r0
curl-dev-8.0.1-r0

For us the problem is, that we use an image, wich is based on alpine/git:latest as github-action. So we do not really have control...

WTPascoe commented 1 year ago

We're using it in a Gitlab pipeline, and doing apk add curl-dev as a before_script: step makes it work - not sure if you can do the same in a github pre script ?

ozbillwang commented 1 year ago

The CI pipeline has been switched from Travis to Circle CI. The latest release has been pushed. Please inform me if you still encounter the issue or not

image

$ docker run --entrypoint sh alpine/git:latest -c 'apk add --no-cache curl;curl -V; curl https://www.google.com' | grep -E "^(fetch|curl|WARNING)"
fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/main/x86_64/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/community/x86_64/APKINDEX.tar.gz
curl 8.1.2 (x86_64-alpine-linux-musl) libcurl/8.1.2 OpenSSL/3.1.0 zlib/1.2.13 brotli/1.0.9 libidn2/2.3.4 nghttp2/1.53.0
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 17158    0 17158    0     0  42817      0 --:--:-- --:--:-- --:--:-- 42788
pluralistix commented 1 year ago

Thank you!