Description
The binary that this crate downloads from bitcoincore.org doesn't run on an Alpine Docker container with
FROM alpine:3.15
The shared library ld-linux-x86-64.so.2 is missing and no compatible version available from the Alpine repo:
`/app # /app/target/release/build/bitcoind-0886d6cbe0ab5cd4/out/bitcoin/bitcoin-22.0/bin/bitcoind --version
sh: /app/target/release/build/bitcoind-0886d6cbe0ab5cd4/out/bitcoin/bitcoin-22.0/bin/bitcoind: not found
/app # ldd /app/target/release/build/bitcoind-0886d6cbe0ab5cd4/out/bitcoin/bitcoin-22.0/bin/bitcoind
/lib64/ld-linux-x86-64.so.2 (0x7f53f39aa000)
libpthread.so.0 => /lib64/ld-linux-x86-64.so.2 (0x7f53f39aa000)
librt.so.1 => /lib64/ld-linux-x86-64.so.2 (0x7f53f39aa000)
libm.so.6 => /lib64/ld-linux-x86-64.so.2 (0x7f53f39aa000)
libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x7f53f2d2e000)
libc.so.6 => /lib64/ld-linux-x86-64.so.2 (0x7f53f39aa000)
Error loading shared library ld-linux-x86-64.so.2: No such file or directory (needed by /app/target/release/build/bitcoind-0886d6cbe0ab5cd4/out/bitcoin/bitcoin-22.0/bin/bitcoind)
Error relocating /app/target/release/build/bitcoind-0886d6cbe0ab5cd4/out/bitcoin/bitcoin-22.0/bin/bitcoind: __strdup: symbol not found
Error relocating /app/target/release/build/bitcoind-0886d6cbe0ab5cd4/out/bitcoin/bitcoin-22.0/bin/bitcoind: __rawmemchr: symbol not found
Error relocating /app/target/release/build/bitcoind-0886d6cbe0ab5cd4/out/bitcoin/bitcoin-22.0/bin/bitcoind: __snprintf_chk: symbol not found
Error relocating /app/target/release/build/bitcoind-0886d6cbe0ab5cd4/out/bitcoin/bitcoin-22.0/bin/bitcoind: __fread_chk: symbol not found
Error relocating /app/target/release/build/bitcoind-0886d6cbe0ab5cd4/out/bitcoin/bitcoin-22.0/bin/bitcoind: __strftime_l: symbol not found
Error relocating /app/target/release/build/bitcoind-0886d6cbe0ab5cd4/out/bitcoin/bitcoin-22.0/bin/bitcoind: __vsnprintf_chk: symbol not found
Error relocating /app/target/release/build/bitcoind-0886d6cbe0ab5cd4/out/bitcoin/bitcoin-22.0/bin/bitcoind: pthread_yield: symbol not found
Error relocating /app/target/release/build/bitcoind-0886d6cbe0ab5cd4/out/bitcoin/bitcoin-22.0/bin/bitcoind: malloc_info: symbol not found
Error relocating /app/target/release/build/bitcoind-0886d6cbe0ab5cd4/out/bitcoin/bitcoin-22.0/bin/bitcoind: __fprintf_chk: symbol not found
Error relocating /app/target/release/build/bitcoind-0886d6cbe0ab5cd4/out/bitcoin/bitcoin-22.0/bin/bitcoind: __memcpy_chk: symbol not found
`
Also using the packaged version of bitcoind from the alpine repository doesn't work, because it was compiled without wallet functionality.
https://git.alpinelinux.org/aports/tree/community/bitcoin/APKBUILD line 51
I'm not sure what is the best way to make it work with Alpine.