-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
SSIA
How to reproduce:
docker run -it --rm --name alpine0 alpine
apk add wget file
wget https://github.com/splicemachine/splicectl/releases/download/v0.1.2/splicectl_linux_amd64.tar.gz
tar xzf splicectl_linux_amd64.tar.gz
cd splicectl_linux_amd64/
./splicectl And the output is
/bin/sh: ./splicectl: not found
The issue is that splicectl binary is dynamically linked
file ./splicectl
./splicectl: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, Go BuildID=tsMujqG3KViSUK7B3nLx/a8C3_FLS46xKOUGkagqH/Y33HjfeHBC602P2U0DzD/rlmmoTDLyw0CS-ZJOQd9, not strippedTemporary work-around is to install libc6-compat
apk add libc6-compatI suppose the correct way should use is to build static binaries.
We have kubectl as an example - it works w/o issues in the vanilla alpine image as it's static binary
file ./kubectl
./kubectl: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked, strippedMetadata
Metadata
Assignees
Labels
No labels