Skip to content

Latest commit

 

History

History

docker-compose-quickstart

Getting Started with Digital Bill of Materials

This tutorial will describe how to get started with the digital bill of materials using docker. The sample docker-compose file will build and run 4 containers viz.

  • chainsource-gateway
  • database-agent
  • mongodb-audit-watcher
  • mongodb

Once these containers are running, the Chainsource gateway provides a REST interface with the APIs as described in the API Document.

Prerequisites and setup:

Running the sample program

Terminal Window

Step 1

Clone this Git repository and navigate to the docker-compose-quickstart folder

Step 2

Launch the network using docker-compose

docker-compose -f docker-compose.yaml up -d 

Once you run this command, the latest images will be pulled from DockerHub and the containers will come up. If you want to use a specific version of the containers, please edit the compose file to point to the appropriate versions

docker-compose ps

The output of the above command should be similar to the one below

Step 3

With the containers started, next, test the APIs by executing the script - testAPIs.sh:

./testAPIs.sh