We can deploy PostgreSQL with RocksDB in Docker container.
Start the container with the following Docker image we have provided.
-
Run a Docker container:
docker run -d --name postgresql -p 5432:5432 vidardb/postgresql:rocksdb-6.2.4
-
Connect to the PostgreSQL:
psql -h 127.0.0.1 -p 5432 -U postgres
Please note that PostgreSQL client should already be installed before running the container.
We can build a new Docker image in the following way. It is the prerequisite that install docker engine in the building machine.
-
Install Docker engine:
Docker engine is available on multiple platforms. Just follow the official doc to choose the best installation option for you.
-
Build Docker image:
make docker-image
After executing the previous command, it will build docker image with the default image repository and name:
vidardb/postgresql:rocksdb-6.2.4
.We can also specify the build parameters:
REGISTRY=<YOUR REGISTRY ADDRESS> IMAGE=<YOUR IMAGE NAME> TAG=<YOUR IMAGE TAG> make docker-image