sentry-cli: sentry-cli install script fails on alpine
There are undocumented dependencies needed for sentry-cli needed for alpine linux
To reproduce:
FROM alpine:edge
RUN apk add --update ca-certificates \
&& apk add bash curl
RUN curl -sL https://sentry.io/get-cli/ | bash
CMD bash
docker run -it sentry bash
bash-4.3# sentry-cli
bash: /usr/local/bin/sentry-cli: No such file or directory
bash-4.3# ls -al /usr/local/bin/
total 12644
drwxr-xr-x 2 root root 4096 May 15 19:02 .
drwxr-xr-x 7 root root 4096 May 15 19:02 ..
-rwxr-xr-x 1 root root 12935936 May 15 19:02 sentry-cli
bash-4.3#
I know that there is a dependency missing, I have another alpine image that works with sentry-cli installed the same way(I cannot post that docker file).
It would be nice if there was a more helpful error message so I know what is missing
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 3
- Comments: 17 (7 by maintainers)
I might look into musl builds again. I nuked and updated some dependencies so there might be fewer stoppers now.
@oscar-b I used the docker image above and exported the binary to my ci image. I think it only needs
llvm-libunwind opensslas runtime dependenciesThis seems to be the minimal docker image to build and run
sentry-clion Alpine:@Rishka for what it’s worth in that tarball is a full ubuntu installation. So your alpine linux becomes … ubuntu.
Until recently linuxes without glibc were pretty uncommon but docker is setting a trend to have alpine there so we might investigate this again. The main issue I have is that the only alternative to glibc is musl and musl compiled binaries behave weirdly for some users (eg:
lddbreaks).I actually just found why it works in my other image,
and it works fine…
phantomjshas a similar issue withglibcand apparently the workarounds there makessentry-cliwork as well.updated the example
@Rishka Rust/Cargo seems to leave 260 Mb of installed packages in
/root/.cargo, need tormit.