Skip to content

Building Chronicle

BTP maintain and distribute a docker image for the Chronicle transaction processor. End users of Chronicle need to build their own versions to support their custom domains. BTP maintains and distributes a docker build image to be used in CI/CD.

Example dockerfile

Assuming a valid Chronicle domain configuration located in the same directory as the dockerfile, the following will build a domain-specific Chronicle. You should only need to source control the Dockerfile and domain.config - Chronicle's build image will do the rest.

FROM blockchaintp/builder:{VERSION_NUMBER} as domain

COPY domain.yaml chronicle-domain/
cargo build --release --frozen --bin chronicle

In-memory version

For rapid development and testing purposes a standalone version of Chronicle can be built and distributed as a docker image or binary.

FROM blockchaintp/builder:{VERSION_NUMBER} as domain

COPY domain.yaml chronicle-domain/
cargo build --release --frozen --features inmem --bin chronicle