extism / cli

The extism CLI is used to generate plugin scaffolding and manage Extism installations
BSD 3-Clause "New" or "Revised" License
19 stars 5 forks source link

Docker images broken #75

Open MeneDev opened 2 months ago

MeneDev commented 2 months ago

The docker images only provide the binary of the extism CLI, but that is not a standalone binary, it requires e.g. libc.

running ldd /extism on the linux/arm64 variant returns

        /lib/ld-linux-aarch64.so.1 (0x7ffffff5d000)
        libdl.so.2 => /lib/ld-linux-aarch64.so.1 (0x7ffffff5d000)
        libc.so.6 => /lib/ld-linux-aarch64.so.1 (0x7ffffff5d000)
        libpthread.so.0 => /lib/ld-linux-aarch64.so.1 (0x7ffffff5d000)

Any attempt to use the image will give the error message

exec /extism: no such file or directory
nilslice commented 2 months ago

Hi - what is the image you're getting these errors?

These extism images were intended to only run in earlier stage images to install libextism.so and extism.h, not in a final stage image.

Do you need the extism CLI in your final stage image?

MeneDev commented 2 months ago

Ah, ok sorry then. I was talking about the latest extism/cli and I expected the image to be usable as the cli tool, as an alternative to installing the tool. Some people I work with are not too fond of piping a script from the web into their local shell, so that seemed like the better alternative.

nilslice commented 2 months ago

Ah, totally makes sense. We can make it work for that. Thanks for letting me know.

Will ping this issue when it's fixed.