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.


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 "": 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
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
I was able to build just by add --build-arg REPOSITORY=neondatabase

Can you please add neon_local to the official image?