This repository has been archived by the owner on Apr 11, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Andrii Soluk <[email protected]>
- Loading branch information
Showing
18 changed files
with
520 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,3 +32,6 @@ coverage.txt | |
node_modules | ||
/dist | ||
build | ||
|
||
deployments/keys | ||
deployments/demo/openapi/specs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# | ||
# Copyright SecureKey Technologies Inc. All Rights Reserved. | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
|
||
# This file contains the default images and tags used in the docker-based | ||
# Fabric fixtures. The images and tags can be overridden using environment | ||
# variables. See docker compose documentation. | ||
|
||
|
||
# Agent configurations | ||
AGENT_REST_IMAGE=docker.pkg.github.com/trustbloc/agent-sdk/agent-sdk-rest | ||
AGENT_REST_IMAGE_TAG=latest | ||
|
||
# HTTP Resolver Configurations | ||
HTTP_DID_RESOLVER=sidetree@http://agent.sdk.sidetree.mock:48326/sidetree/0.0.1/identifiers | ||
|
||
# Transport Schemes | ||
HTTP_SCHEME=http | ||
WS_SCHEME=ws | ||
|
||
# Aries Framework Configurations | ||
TRANSPORT_RETURN_OPTION_ALL=all | ||
|
||
# Alice agent configurations | ||
ALICE_HOST=0.0.0.0 | ||
ALICE_INBOUND_PORT=8081 | ||
ALICE_API_PORT=8082 | ||
|
||
# Bob agent configurations | ||
BOB_HOST=0.0.0.0 | ||
BOB_INBOUND_PORT=9081 | ||
BOB_API_PORT=9082 | ||
|
||
# Carl agent configurations | ||
CARL_HOST=0.0.0.0 | ||
CARL_API_PORT=10081 | ||
|
||
# Carl router configurations | ||
CARL_ROUTER_HOST=0.0.0.0 | ||
CARL_ROUTER_HTTP_INBOUND_PORT=10091 | ||
CARL_ROUTER_WS_INBOUND_PORT=10092 | ||
CARL_ROUTER_API_PORT=10093 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
# | ||
# Copyright IBM Corp, SecureKey Technologies Inc. All Rights Reserved. | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
version: '2' | ||
|
||
services: | ||
|
||
alice.agent.sdk.example.com: | ||
container_name: alice.agent.sdk.example.com | ||
image: ${AGENT_REST_IMAGE}:${AGENT_REST_IMAGE_TAG} | ||
environment: | ||
- ARIESD_API_HOST=${ALICE_HOST}:${ALICE_API_PORT} | ||
- ARIESD_INBOUND_HOST=${HTTP_SCHEME}@${ALICE_HOST}:${ALICE_INBOUND_PORT} | ||
- ARIESD_INBOUND_HOST_EXTERNAL=${HTTP_SCHEME}@https://alice.agent.sdk.example.com:${ALICE_INBOUND_PORT} | ||
- ARIESD_DEFAULT_LABEL=alice-agent | ||
- ARIESD_DATABASE_TYPE=leveldb | ||
- ARIESD_DATABASE_PREFIX=alice | ||
- ARIESD_DATABASE_TIMEOUT=60 | ||
- ARIESD_HTTP_RESOLVER=${HTTP_DID_RESOLVER} | ||
- TLS_CERT_FILE=/etc/tls/ec-pubCert.pem | ||
- TLS_KEY_FILE=/etc/tls/ec-key.pem | ||
volumes: | ||
- ../keys/tls:/etc/tls | ||
ports: | ||
- ${ALICE_INBOUND_PORT}:${ALICE_INBOUND_PORT} | ||
- ${ALICE_API_PORT}:${ALICE_API_PORT} | ||
entrypoint: "" | ||
command: /bin/sh -c "cp /etc/tls/* /usr/local/share/ca-certificates/;update-ca-certificates; agent-rest start" | ||
networks: | ||
- agent_sdk_net | ||
|
||
bob.agent.sdk.example.com: | ||
container_name: bob.agent.sdk.example.com | ||
image: ${AGENT_REST_IMAGE}:${AGENT_REST_IMAGE_TAG} | ||
environment: | ||
- ARIESD_API_HOST=${BOB_HOST}:${BOB_API_PORT} | ||
- ARIESD_INBOUND_HOST=${HTTP_SCHEME}@${BOB_HOST}:${BOB_INBOUND_PORT} | ||
- ARIESD_INBOUND_HOST_EXTERNAL=${HTTP_SCHEME}@https://bob.agent.sdk.example.com:${BOB_INBOUND_PORT} | ||
- ARIESD_DATABASE_TYPE=leveldb | ||
- ARIESD_DATABASE_PREFIX=bob | ||
- ARIESD_DATABASE_TIMEOUT=60 | ||
- ARIESD_DEFAULT_LABEL=bob-agent | ||
- ARIESD_HTTP_RESOLVER=${HTTP_DID_RESOLVER} | ||
- TLS_CERT_FILE=/etc/tls/ec-pubCert.pem | ||
- TLS_KEY_FILE=/etc/tls/ec-key.pem | ||
volumes: | ||
- ../keys/tls:/etc/tls | ||
ports: | ||
- ${BOB_INBOUND_PORT}:${BOB_INBOUND_PORT} | ||
- ${BOB_API_PORT}:${BOB_API_PORT} | ||
entrypoint: "" | ||
command: /bin/sh -c "cp /etc/tls/* /usr/local/share/ca-certificates/;update-ca-certificates; agent-rest start" | ||
networks: | ||
- agent_sdk_net | ||
|
||
carl.agent.sdk.example.com: | ||
container_name: carl.agent.sdk.example.com | ||
image: ${AGENT_REST_IMAGE}:${AGENT_REST_IMAGE_TAG} | ||
environment: | ||
- ARIESD_API_HOST=${CARL_HOST}:${CARL_API_PORT} | ||
- ARIESD_DEFAULT_LABEL=carl-agent | ||
- ARIESD_DATABASE_TYPE=leveldb | ||
- ARIESD_DATABASE_PREFIX=carl | ||
- ARIESD_DATABASE_TIMEOUT=60 | ||
- ARIESD_OUTBOUND_TRANSPORT=${HTTP_SCHEME},${WS_SCHEME} | ||
- ARIESD_TRANSPORT_RETURN_ROUTE=${TRANSPORT_RETURN_OPTION_ALL} | ||
- TLS_CERT_FILE=/etc/tls/ec-pubCert.pem | ||
- TLS_KEY_FILE=/etc/tls/ec-key.pem | ||
volumes: | ||
- ../keys/tls:/etc/tls | ||
ports: | ||
- ${CARL_API_PORT}:${CARL_API_PORT} | ||
entrypoint: "" | ||
command: /bin/sh -c "cp /etc/tls/* /usr/local/share/ca-certificates/;update-ca-certificates; agent-rest start" | ||
networks: | ||
- agent_sdk_net | ||
|
||
carl.router.agent.sdk.example.com: | ||
container_name: carl.router.agent.sdk.example.com | ||
image: ${AGENT_REST_IMAGE}:${AGENT_REST_IMAGE_TAG} | ||
environment: | ||
- ARIESD_API_HOST=${CARL_ROUTER_HOST}:${CARL_ROUTER_API_PORT} | ||
- ARIESD_INBOUND_HOST=${HTTP_SCHEME}@${CARL_ROUTER_HOST}:${CARL_ROUTER_HTTP_INBOUND_PORT},${WS_SCHEME}@${CARL_ROUTER_HOST}:${CARL_ROUTER_WS_INBOUND_PORT} | ||
- ARIESD_INBOUND_HOST_EXTERNAL=${HTTP_SCHEME}@https://carl.router.agent.sdk.example.com:${CARL_ROUTER_HTTP_INBOUND_PORT},${WS_SCHEME}@wss://carl.router.agent.sdk.example.com:${CARL_ROUTER_WS_INBOUND_PORT} | ||
- ARIESD_DATABASE_TYPE=leveldb | ||
- ARIESD_DATABASE_PREFIX=carl_router | ||
- ARIESD_DATABASE_TIMEOUT=60 | ||
- ARIESD_DEFAULT_LABEL=carl-router-agent | ||
- ARIESD_OUTBOUND_TRANSPORT=${HTTP_SCHEME},${WS_SCHEME} | ||
- ARIESD_HTTP_RESOLVER=${HTTP_DID_RESOLVER} | ||
- TLS_CERT_FILE=/etc/tls/ec-pubCert.pem | ||
- TLS_KEY_FILE=/etc/tls/ec-key.pem | ||
volumes: | ||
- ../keys/tls:/etc/tls | ||
ports: | ||
- ${CARL_ROUTER_HTTP_INBOUND_PORT}:${CARL_ROUTER_HTTP_INBOUND_PORT} | ||
- ${CARL_ROUTER_WS_INBOUND_PORT}:${CARL_ROUTER_WS_INBOUND_PORT} | ||
- ${CARL_ROUTER_API_PORT}:${CARL_ROUTER_API_PORT} | ||
entrypoint: "" | ||
command: /bin/sh -c "cp /etc/tls/* /usr/local/share/ca-certificates/;update-ca-certificates; agent-rest start" | ||
networks: | ||
- agent_sdk_net | ||
|
||
networks: | ||
agent_sdk_net: | ||
driver: bridge |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# | ||
# Copyright SecureKey Technologies Inc. All Rights Reserved. | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
|
||
# This file contains the default images and tags used in the docker-based | ||
# Fabric fixtures. The images and tags can be overridden using environment | ||
# variables. See docker compose documentation. | ||
|
||
|
||
# Demo Agent API hosts | ||
ALICE_API_HOST=localhost:8082 | ||
BOB_API_HOST=localhost:9082 | ||
CARL_API_HOST=localhost:10081 | ||
CARL_ROUTER_API_HOST=localhost:10093 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
# | ||
# Copyright IBM Corp, SecureKey Technologies Inc. All Rights Reserved. | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
version: '2' | ||
|
||
services: | ||
|
||
alice.sdk.openapi.demo.com: | ||
container_name: alice.sdk.openapi.demo.com | ||
image: swaggerapi/swagger-ui | ||
environment: | ||
- SWAGGER_JSON=/specs/openapi-${ALICE_API_HOST}.yml | ||
- BASE_URL=/openapi | ||
ports: | ||
- 8089:8080 | ||
volumes: | ||
- ./specs:/specs | ||
networks: | ||
- agent-sdk-rest-net | ||
|
||
bob.sdk.openapi.demo.com: | ||
container_name: bob.sdk.openapi.demo.com | ||
image: swaggerapi/swagger-ui | ||
environment: | ||
- SWAGGER_JSON=/specs/openapi-${BOB_API_HOST}.yml | ||
- BASE_URL=/openapi | ||
ports: | ||
- 9089:8080 | ||
volumes: | ||
- ./specs:/specs | ||
networks: | ||
- agent-sdk-rest-net | ||
|
||
carl.sdk.openapi.demo.com: | ||
container_name: carl.sdk.openapi.demo.com | ||
image: swaggerapi/swagger-ui | ||
environment: | ||
- SWAGGER_JSON=/specs/openapi-${CARL_API_HOST}.yml | ||
- BASE_URL=/openapi | ||
ports: | ||
- 10089:8080 | ||
volumes: | ||
- ./specs:/specs | ||
networks: | ||
- agent-sdk-rest-net | ||
|
||
carl.router.sdk.openapi.demo.com: | ||
container_name: carl.router.sdk.openapi.demo.com | ||
image: swaggerapi/swagger-ui | ||
environment: | ||
- SWAGGER_JSON=/specs/openapi-${CARL_ROUTER_API_HOST}.yml | ||
- BASE_URL=/openapi | ||
ports: | ||
- 10099:8080 | ||
volumes: | ||
- ./specs:/specs | ||
networks: | ||
- agent-sdk-rest-net | ||
|
||
networks: | ||
agent-sdk-rest-net: | ||
external: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# | ||
# Copyright SecureKey Technologies Inc. All Rights Reserved. | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
|
||
# This file contains the default images and tags used in the docker | ||
# The images and tags can be overridden using environment | ||
# variables. See docker compose documentation. | ||
|
||
COMPOSE_DIR=. | ||
|
||
# sidetree mock | ||
SIDETREE_MOCK_FIXTURE_IMAGE=docker.pkg.github.com/trustbloc-cicd/snapshot/sidetree-mock | ||
SIDETREE_MOCK_FIXTURE_IMAGE_TAG=0.1.5-snapshot-7375c22 |
Oops, something went wrong.