I tried to use coursier to install bloop in a docker alpine. While the installed bloop seems not working. see details here https://github.com/scalacenter/bloop/issues/1287
## to have a test
docker run -it --rm alpine
## enter docker alpine
apk update && apk add openjdk11-jdk
wget -O /usr/bin/coursier https://git.io/coursier-cli && chmod +x /usr/bin/coursier
coursier install --dir /usr/bin bloop --only-prebuilt=true
bloop server
## it complains
## /usr/bin/bloop: exec: line 4: /usr/bin/.bloop.aux: not found
## But /usr/bin/.bloop.aux is there.
@davidmlw I just commented on https://github.com/scalacenter/bloop/issues/1287.
use coursier bootstrap bloop --standalone -o bloop. Solved
I think that you might need to create a build specifically for musl platforms using the -H:UseMuslC option of GraalVM. You can find out more about it (and sample usage) at these 2 links:
https://jamesward.com/2020/05/07/graalvm-native-image-tips-tricks/
https://github.com/oracle/graal/issues/2146
As a workaround, you can use the alpine-glibc image:
$ docker run -i -t frolvlad/alpine-glibc:alpine-3.12 /bin/ash
$ apk add libstdc++
$ wget https://github.com/coursier/launchers/raw/master/cs-x86_64-pc-linux
$ chmod +x cs-x86_64-pc-linux
$ ./cs-x86_64-pc-linux
./cs-x86_64-pc-linux: /usr/lib/libstdc++.so.6: no version information available (required by ./cs-x86_64-pc-linux)
Coursier 2.0.7
Usage: cs [options] [command] [command-options]
Available commands: bootstrap, channel, complete, fetch, get, install, java, java-home, launch, list, publish, resolve, setup, uninstall, update
Type cs command --help for help on an individual command
Most helpful comment
I think that you might need to create a build specifically for musl platforms using the
-H:UseMuslCoption of GraalVM. You can find out more about it (and sample usage) at these 2 links:https://jamesward.com/2020/05/07/graalvm-native-image-tips-tricks/
https://github.com/oracle/graal/issues/2146