Skip to content

install.sh dowloads wrong binary on Alpine Linux (libmusl) #243

@bandogora

Description

@bandogora

Describe the bug

Running the install script on a fresh Alpine container downloads kratos_{version}-linux_sqlite_64bit.tar.gz when it should download kratos_{version}-linux_sqlite_libmusl_64bit.tar.gz.

Suggested change

A check needs to be added for the C library in use. i.e., ldd --version.

Reproducing the bug

ash <(wget -qO- https://raw.githubusercontent.com/ory/meta/master/install.sh) -d -b . kratos

Relevant log output

ory/ info checking GitHub for latest tag
ory/ debug http_download https://github.com/ory/kratos/releases/latest
ory/ info found version: 25.4.0 for v25.4.0/linux/64bit
ory/ debug downloading files into /tmp/tmp.MFBmna
ory/ debug http_download https://github.com/ory/kratos/releases/download/v25.4.0/kratos_25.4.0-linux_sqlite_64bit.tar.gz
ory/ debug http_download https://github.com/ory/kratos/releases/download/v25.4.0/checksums.txt
ory/ info installed ./bin/kratos

On which operating system are you observing this issue?

Linux

Additional Context

Alpine is running in a Linux container (lxc) on a Proxmox based system.

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