Skip to content
Matthias Benkort edited this page Apr 23, 2020 · 5 revisions

Overview

Docker builds of cardano-db-sync are available on Docker Hub. ​ Every release is tagged using semantic versioning and pushed to Docker Hub. For instance, images for release 1.4.0 can be pulled from Docker Hub via: ​

$ docker pull inputoutput/cardano-db-sync:1.4.0

​ or the latest development version can be pulled using: ​

$ docker pull inputoutput/cardano-db-sync:master

How To Configure

​ Example configurations are available in the cardano-db-sync repository. You will need: ​

config/
├── configuration.yaml
├── genesis.json
└── pgpass

How To Run

​ Assuming you have created the configuration directory as a subdirectory, mount the volume and run [cardano-db-sync]. For example, ​

docker run -v `pwd`/config:/configuration inputoutput/cardano-db-sync:1.4.0
docker run -v `pwd`/config:/configuration inputoutput/cardano-db-sync:master

How To Stop

CTRL+C

Building the Docker image locally

​ Ensure that you have Nix installed and the IOHK binary cache enabled (instructions). ​ Then run these commands from the cardano-db-sync git repository: ​

docker load -i $(nix-build -A dockerImages.submitApi --no-out-link)
docker load -i $(nix-build -A dockerImages.explorerApi --no-out-link)

​ If you have no local changes, the build should be downloaded from the IOHK binary cache

Clone this wiki locally