sql-studio
sql-studio copied to clipboard
Running `sql-studio` on a distroless image
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
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:
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
:(
Related to #31
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