Identity Chain Test Pool Image (Containing Trust Anchors)
1.3K
Dockerfile configuration for our indy test-pool image. This image is based on the [Getting Started] documentation found in [Hyperledger Indy SDK repository]. We added some NYM transactions into the genesis pool transaction file. This identities (DIDs) were created using seeds to make them reproducible and have the role of TRUST_ANCHORS (TA). For our use-case we added 4 TA DIDs for:
Please notice all commands expect you are inside the test-pool folder of the repository (Where this README file is located)
Build Docker image with organization tag
docker build -t idchain/test-pool:<version> .
Push Docker image to DockerHub (Only for users with permissions)
docker login
cat .dockerHubVersion
docker build -t idchain/test-pool:<version> .
docker push idchain/test-pool:<version>
# Increment version reference in Docker Hub Version file & push changes to Git
vi .dockerHubVersion
git add .dockerHubVersion
git commit -m "Published new Docker image into DockerHUB with version: <version>"
git push
Configuration can be provided using environment variables
docker run -e IDC_POOL_IP=172.16.0.100 -p 8000:8000 idchain/test-pool:<version>
Currently, our test environment runs in the Cloud. If we want the pool to be reachable from the outside of the virtual machine, we need to use in the external clients the same pool_transactions_genesis file. This file contains the IP and PORTs of the nodes, in our case (for this test-pool) all nodes run in one container inside a virtual machine. Therefore we will need to use the same IP address with different ports. This IP address needs to be resolvable from external DNS. In order to simplify the set up, we decided to use in the internal Docker Network the same Public IP address as the one assigned to the virtual machine.
cp env-example .env
./display-cloud-info.sh
# Modify .env file with the values printed by the command
docker-compose up -d
This docker image exposes the logs of the nodes and the genesis files using a HTTP server on port 8001 (default)
curl <IDC_POOL_IP>:8001/pool_transactions_genesis
In this PoC we will skip the onboarding of Trust Anchors NYMs. Therefore, 4 NYM transactions where added to the domain transactions genesis. These DIDs where generated using seeds, so at any time the owners could regenerate them.
Government
Chamber of Commerce
Cloud Agent
ING Bank
Content type
Image
Digest
Size
262.4 MB
Last updated
over 7 years ago
docker pull idchain/test-pool