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.
- Docker - v18.0 or higher
- Docker Compose - v1.25.0 or higher
- Git client - needed for clone commands
Clone this Git repository and navigate to the docker-compose-quickstart folder
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
With the containers started, next, test the APIs by executing the script - testAPIs.sh
:
./testAPIs.sh