Skip to content

splicectl doesn't work under alpine image #21

@voron

Description

@voron

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 stripped

Temporary work-around is to install libc6-compat

 apk add libc6-compat

I 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, stripped

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions