Is the neon_local binary in any of the official Docker images?

I’m running a self-hosted Neon setup using Docker and would like to use the neon_local tool.

Hi,

Unfortunately no, not yet at least. It is trivial to create one by adding

COPY --from=build --chown=neon:neon /home/nonroot/target/release/neon_local               /usr/local/bin

to existing Dockerfile (and adding --bin neon_local to cargo build command) though.

1 Like

Unfortunately I’m unable to build the image myself due to this error

Get "http://369495373322.dkr.ecr.eu-central-1.amazonaws.com/v2/": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)

Fair enough. It can be workaround by first building ‘rust’ locally:

# at  https://github.com/neondatabase/build/
docker build rust/ -t neondatabase/rust:local

and then in main repo

docker build . --build-arg REPOSITORY=neondatabase --build-arg TAG=local -t neondatabase/neon:local

but I’ll try to add rust image to docker hub soon as well.

It looks like the image is already in docker hub
https://hub.docker.com/r/neondatabase/rust
I was able to build just by add --build-arg REPOSITORY=neondatabase

Can you please add neon_local to the official image?