Yes.
One can run neon
on the local machine without any servers, we have a special set of “e2e” tests doing exactly this: neon/test_runner at main · neondatabase/neon · GitHub
There’s a set of tools you need to run together to have a fully working system locally:
- a safekeeper component (at least one, 3 for something “regular”)
- a pageserver component
- a compute component
- etcd
You don’t have to start them by hand though, there are two ways to manage those:
-
neon_local
CLI tool for regular development usage, fully described in the root README: neon/README.md at main · neondatabase/neon · GitHub -
zenith_fixtures.py to use in some sort of automation like test set up. Check the tests around to see how it’s used.
NOTE: this component now partially usesneon_local
and has an “old” name, it will get renamed and refactored heavily later.
Pretty much the same way as the dev env could be started, the self hosted one could be.
One key difference that might help here is the Dockerfile that we have, we build images out of it and compute:
The images’ maintenance will become more structured with time, for now we only have latest
x86 Docker images pushed for every code change in main
.