Skip to main content

Deploying the Encrypted Object Store

Practical guide to deploying the Object Store

Local Deployment

A local environment can help get you acquainted with the object store. Typical use cases will require at least two object stores, to simulate data being shared between two separate participants.

A script for deploying a local environment in Docker with two object stores and a Provenance node is available in the BlockVault CEE API repository. It stands up two object stores backed by a PostgreSQL data store along with a single Provenance Blockchain node. The object stores and blockchain node provide an environment to exercise the various operations needed to understand how data is stored in BlockVault. This repository also provides a web-server you can use to exercise and manipulate your environment to meet your needs.

Local Environment Setup

Requirements

The general system requirements to spin up this test environment locally are as follows, but do check out README for more details.

  1. Git command line
  2. Terminal that can run shell scripts (e.b. Mac Terminal, Bash)
  3. Docker and Docker Compose
  4. Gradle
  5. Vault installed on your local OS

Setup

Download the repo.

git clone https://github.com/provenance-io/p8e-cee-api
cd p8e-cee-api
./gradlew clean build

Setup Docker containers as detailed in the image above using a script.

./dc.sh up

Start the web server.

./gradlew bootRun

Default Configuration

Depending on your testing needs, you may choose to just operate on one of the two Object Stores, but two have been provided to support simulating operations across two separate Object Stores.

By default, the components are listening on the following ports:

ComponentContainer NamePort(s)
Provenance Blockchain Nodeprovenance

1317:1317
9090:9090
26657:26657

Postgrespostgres5432:5432
Vaultvault8200:8200
Object Store 1object-store-15001:8081
Object Store 2object-store-25002:8082

Sandbox Environment

info

Figure hosts and operates a sandbox BlockVault environment that is configured to work with the Provenance testnet for potential asset originators to play with. Contact Figure for more information.