sql-studio icon indicating copy to clipboard operation
sql-studio copied to clipboard

Running `sql-studio` on a distroless image

Open jamietanna opened this issue 1 year ago • 4 comments

This is a tracking image where I'm looking at how I'd be able to run this with as-lightweight-as-possible a Docker image.

Related: #32

Chainguard static image

FROM cgr.dev/chainguard/static:latest

COPY sql-studio /

And then when we run this image, we see:

exec /sql-studio: no such file or directory

Chainguard static glibc image

FROM cgr.dev/chainguard/static:latest-glibc

COPY sql-studio /

And then when we run this image, we see:

exec /sql-studio: no such file or directory

Google distroless static glibc image

FROM gcr.io/distroless/static-debian12:latest

COPY sql-studio /

And then when we run this image, we see:

exec /sql-studio: no such file or directory

jamietanna avatar Jun 28 '24 09:06 jamietanna

Via https://images.chainguard.dev/directory/image/static/overview we may need to tweak the build-time flags to produce a fully static image :thinking:

jamietanna avatar Jun 28 '24 21:06 jamietanna

via:

% env RUSTFLAGS='-C target-feature=+crt-static' cargo build
error: cannot produce proc-macro for `async-stream-impl v0.3.5` as the target `x86_64-unknown-linux-gnu` does not support these crate types

:(

jamietanna avatar Jun 28 '24 21:06 jamietanna

Related to #31

frectonz avatar Jul 06 '24 23:07 frectonz

Hey @frectonz mind closing this as Not Planned in GitHub, rather than Completed? It may indicate to others a little better that we did not resolve this, but are closing it as is

jamietanna avatar Jul 07 '24 07:07 jamietanna