Skip to content

Commit

Permalink
style: apply linters automatic fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Hyperledger Bot <hyperledger-bot@hyperledger.org>
  • Loading branch information
hyperledger-bot committed May 8, 2024
1 parent 28e2a0e commit 59876b0
Show file tree
Hide file tree
Showing 14 changed files with 332 additions and 299 deletions.
14 changes: 7 additions & 7 deletions examples/.nickel/build.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
find . -name "*.ncl" | xargs -I _ nickel format _

nickel export ./root.ncl -f yaml --field st > ../st/compose.yaml
nickel export ./root.ncl -f yaml --field st-vault > ../st-vault/compose.yaml
nickel export ./root.ncl -f yaml --field st-multi > ../st-multi/compose.yaml
nickel export ./root.ncl -f yaml --field st-oid4vci > ../st-oid4vci/compose.yaml
nickel export ./root.ncl -f yaml --field st >../st/compose.yaml
nickel export ./root.ncl -f yaml --field st-vault >../st-vault/compose.yaml
nickel export ./root.ncl -f yaml --field st-multi >../st-multi/compose.yaml
nickel export ./root.ncl -f yaml --field st-oid4vci >../st-oid4vci/compose.yaml

nickel export ./root.ncl -f yaml --field mt > ../mt/compose.yaml
nickel export ./root.ncl -f yaml --field mt-keycloak > ../mt-keycloak/compose.yaml
nickel export ./root.ncl -f yaml --field mt-keycloak-vault > ../mt-keycloak-vault/compose.yaml
nickel export ./root.ncl -f yaml --field mt >../mt/compose.yaml
nickel export ./root.ncl -f yaml --field mt-keycloak >../mt-keycloak/compose.yaml
nickel export ./root.ncl -f yaml --field mt-keycloak-vault >../mt-keycloak-vault/compose.yaml
86 changes: 43 additions & 43 deletions examples/mt-keycloak-vault/compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,28 +27,28 @@ services:
AGENT_DB_HOST: db-default
AGENT_DB_NAME: agent
AGENT_DB_PASSWORD: postgres
AGENT_DB_PORT: '5432'
AGENT_DB_PORT: "5432"
AGENT_DB_USER: postgres
API_KEY_ENABLED: 'false'
API_KEY_ENABLED: "false"
CONNECT_DB_HOST: db-default
CONNECT_DB_NAME: connect
CONNECT_DB_PASSWORD: postgres
CONNECT_DB_PORT: '5432'
CONNECT_DB_PORT: "5432"
CONNECT_DB_USER: postgres
DIDCOMM_SERVICE_URL: http://caddy-default:8080/didcomm
KEYCLOAK_CLIENT_ID: agent
KEYCLOAK_CLIENT_SECRET: agent-secret
KEYCLOAK_ENABLED: 'true'
KEYCLOAK_ENABLED: "true"
KEYCLOAK_REALM: identus
KEYCLOAK_URL: http://keycloak-default:8080
POLLUX_DB_HOST: db-default
POLLUX_DB_NAME: pollux
POLLUX_DB_PASSWORD: postgres
POLLUX_DB_PORT: '5432'
POLLUX_DB_PORT: "5432"
POLLUX_DB_USER: postgres
POLLUX_STATUS_LIST_REGISTRY_PUBLIC_URL: http://caddy-default:8080/prism-agent
PRISM_NODE_HOST: node
PRISM_NODE_PORT: '50053'
PRISM_NODE_PORT: "50053"
REST_SERVICE_URL: http://caddy-default:8080/prism-agent
SECRET_STORAGE_BACKEND: vault
VAULT_ADDR: http://vault-default:8200
Expand All @@ -57,11 +57,11 @@ services:
restart: always
caddy-default:
configs:
- source: caddyfile_default
target: /etc/caddy/Caddyfile
- source: caddyfile_default
target: /etc/caddy/Caddyfile
image: caddy:2.7.6-alpine
ports:
- 8080:8080
- 8080:8080
restart: always
db-default:
environment:
Expand All @@ -72,36 +72,36 @@ services:
interval: 10s
retries: 5
test:
- CMD
- pg_isready
- -U
- postgres
- -d
- postgres
- CMD
- pg_isready
- -U
- postgres
- -d
- postgres
timeout: 5s
image: postgres:13
restart: always
volumes:
- pg_data_default:/var/lib/postgresql/data
- ../.shared/postgres/init-script.sh:/docker-entrypoint-initdb.d/init-script.sh
- ../.shared/postgres/max_conns.sql:/docker-entrypoint-initdb.d/max_conns.sql
- pg_data_default:/var/lib/postgresql/data
- ../.shared/postgres/init-script.sh:/docker-entrypoint-initdb.d/init-script.sh
- ../.shared/postgres/max_conns.sql:/docker-entrypoint-initdb.d/max_conns.sql
keycloak-default:
command:
- start-dev
- --features=preview
- --health-enabled=true
- --hostname-url=http://localhost:8080/keycloak
- --hostname-admin-url=http://localhost:8080/keycloak
- start-dev
- --features=preview
- --health-enabled=true
- --hostname-url=http://localhost:8080/keycloak
- --hostname-admin-url=http://localhost:8080/keycloak
environment:
KEYCLOAK_ADMIN: admin
KEYCLOAK_ADMIN_PASSWORD: admin
image: quay.io/keycloak/keycloak:23.0.7
restart: always
keycloak-init-default:
command:
- --glob
- /hurl/*.hurl
- --test
- --glob
- /hurl/*.hurl
- --test
environment:
HURL_keycloak_admin_password: admin
HURL_keycloak_admin_user: admin
Expand All @@ -111,7 +111,7 @@ services:
HURL_keycloak_realm: identus
image: ghcr.io/orange-opensource/hurl:4.2.0
volumes:
- ../.shared/hurl/simple_realm:/hurl
- ../.shared/hurl/simple_realm:/hurl
node:
depends_on:
node-db:
Expand All @@ -132,37 +132,37 @@ services:
interval: 10s
retries: 5
test:
- CMD
- pg_isready
- -U
- postgres
- -d
- postgres
- CMD
- pg_isready
- -U
- postgres
- -d
- postgres
timeout: 5s
image: postgres:13
restart: always
volumes:
- pg_data_node:/var/lib/postgresql/data
- ../.shared/postgres/init-script.sh:/docker-entrypoint-initdb.d/init-script.sh
- ../.shared/postgres/max_conns.sql:/docker-entrypoint-initdb.d/max_conns.sql
- pg_data_node:/var/lib/postgresql/data
- ../.shared/postgres/init-script.sh:/docker-entrypoint-initdb.d/init-script.sh
- ../.shared/postgres/max_conns.sql:/docker-entrypoint-initdb.d/max_conns.sql
vault-default:
cap_add:
- IPC_LOCK
- IPC_LOCK
environment:
VAULT_ADDR: http://0.0.0.0:8200
VAULT_DEV_ROOT_TOKEN_ID: admin
healthcheck:
interval: 10s
retries: '5'
retries: "5"
test:
- CMD
- vault
- status
- CMD
- vault
- status
timeout: 5s
image: hashicorp/vault:1.15.6
ports:
- 8200:8200
version: '3'
- 8200:8200
version: "3"
volumes:
pg_data_default: {}
pg_data_node: {}
22 changes: 11 additions & 11 deletions examples/mt-keycloak-vault/tests/local.env
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
keycloak_base_url=http://localhost:8080/keycloak
keycloak_realm=identus
keycloak_admin_user=admin
keycloak_admin_password=admin
KEYCLOAK_ADMIN_PASSWORD=admin
KEYCLOAK_ADMIN_USER=admin
KEYCLOAK_BASE_URL=http://localhost:8080/keycloak
KEYCLOAK_REALM=identus

agent_url=http://localhost:8080
AGENT_URL=http://localhost:8080

issuer_username=alice
issuer_password=1234
ISSUER_PASSWORD=1234
ISSUER_USERNAME=alice

holder_username=bob
holder_password=1234
HOLDER_PASSWORD=1234
HOLDER_USERNAME=bob

verifier_username=john
verifier_password=1234
VERIFIER_PASSWORD=1234
VERIFIER_USERNAME=john
15 changes: 15 additions & 0 deletions examples/mt-keycloak-vault/tests/local.env_1715174395.bak
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
keycloak_base_url=http://localhost:8080/keycloak
keycloak_realm=identus
keycloak_admin_user=admin
keycloak_admin_password=admin

agent_url=http://localhost:8080

issuer_username=alice
issuer_password=1234

holder_username=bob
holder_password=1234

verifier_username=john
verifier_password=1234
74 changes: 37 additions & 37 deletions examples/mt-keycloak/compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,39 +27,39 @@ services:
AGENT_DB_HOST: db-default
AGENT_DB_NAME: agent
AGENT_DB_PASSWORD: postgres
AGENT_DB_PORT: '5432'
AGENT_DB_PORT: "5432"
AGENT_DB_USER: postgres
API_KEY_ENABLED: 'false'
API_KEY_ENABLED: "false"
CONNECT_DB_HOST: db-default
CONNECT_DB_NAME: connect
CONNECT_DB_PASSWORD: postgres
CONNECT_DB_PORT: '5432'
CONNECT_DB_PORT: "5432"
CONNECT_DB_USER: postgres
DIDCOMM_SERVICE_URL: http://caddy-default:8080/didcomm
KEYCLOAK_CLIENT_ID: agent
KEYCLOAK_CLIENT_SECRET: agent-secret
KEYCLOAK_ENABLED: 'true'
KEYCLOAK_ENABLED: "true"
KEYCLOAK_REALM: identus
KEYCLOAK_URL: http://keycloak-default:8080
POLLUX_DB_HOST: db-default
POLLUX_DB_NAME: pollux
POLLUX_DB_PASSWORD: postgres
POLLUX_DB_PORT: '5432'
POLLUX_DB_PORT: "5432"
POLLUX_DB_USER: postgres
POLLUX_STATUS_LIST_REGISTRY_PUBLIC_URL: http://caddy-default:8080/prism-agent
PRISM_NODE_HOST: node
PRISM_NODE_PORT: '50053'
PRISM_NODE_PORT: "50053"
REST_SERVICE_URL: http://caddy-default:8080/prism-agent
SECRET_STORAGE_BACKEND: postgres
image: ghcr.io/hyperledger/identus-cloud-agent:1.32.0-SNAPSHOT
restart: always
caddy-default:
configs:
- source: caddyfile_default
target: /etc/caddy/Caddyfile
- source: caddyfile_default
target: /etc/caddy/Caddyfile
image: caddy:2.7.6-alpine
ports:
- 8080:8080
- 8080:8080
restart: always
db-default:
environment:
Expand All @@ -70,36 +70,36 @@ services:
interval: 10s
retries: 5
test:
- CMD
- pg_isready
- -U
- postgres
- -d
- postgres
- CMD
- pg_isready
- -U
- postgres
- -d
- postgres
timeout: 5s
image: postgres:13
restart: always
volumes:
- pg_data_default:/var/lib/postgresql/data
- ../.shared/postgres/init-script.sh:/docker-entrypoint-initdb.d/init-script.sh
- ../.shared/postgres/max_conns.sql:/docker-entrypoint-initdb.d/max_conns.sql
- pg_data_default:/var/lib/postgresql/data
- ../.shared/postgres/init-script.sh:/docker-entrypoint-initdb.d/init-script.sh
- ../.shared/postgres/max_conns.sql:/docker-entrypoint-initdb.d/max_conns.sql
keycloak-default:
command:
- start-dev
- --features=preview
- --health-enabled=true
- --hostname-url=http://localhost:8080/keycloak
- --hostname-admin-url=http://localhost:8080/keycloak
- start-dev
- --features=preview
- --health-enabled=true
- --hostname-url=http://localhost:8080/keycloak
- --hostname-admin-url=http://localhost:8080/keycloak
environment:
KEYCLOAK_ADMIN: admin
KEYCLOAK_ADMIN_PASSWORD: admin
image: quay.io/keycloak/keycloak:23.0.7
restart: always
keycloak-init-default:
command:
- --glob
- /hurl/*.hurl
- --test
- --glob
- /hurl/*.hurl
- --test
environment:
HURL_keycloak_admin_password: admin
HURL_keycloak_admin_user: admin
Expand All @@ -109,7 +109,7 @@ services:
HURL_keycloak_realm: identus
image: ghcr.io/orange-opensource/hurl:4.2.0
volumes:
- ../.shared/hurl/simple_realm:/hurl
- ../.shared/hurl/simple_realm:/hurl
node:
depends_on:
node-db:
Expand All @@ -130,20 +130,20 @@ services:
interval: 10s
retries: 5
test:
- CMD
- pg_isready
- -U
- postgres
- -d
- postgres
- CMD
- pg_isready
- -U
- postgres
- -d
- postgres
timeout: 5s
image: postgres:13
restart: always
volumes:
- pg_data_node:/var/lib/postgresql/data
- ../.shared/postgres/init-script.sh:/docker-entrypoint-initdb.d/init-script.sh
- ../.shared/postgres/max_conns.sql:/docker-entrypoint-initdb.d/max_conns.sql
version: '3'
- pg_data_node:/var/lib/postgresql/data
- ../.shared/postgres/init-script.sh:/docker-entrypoint-initdb.d/init-script.sh
- ../.shared/postgres/max_conns.sql:/docker-entrypoint-initdb.d/max_conns.sql
version: "3"
volumes:
pg_data_default: {}
pg_data_node: {}
22 changes: 11 additions & 11 deletions examples/mt-keycloak/tests/local.env
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
keycloak_base_url=http://localhost:8080/keycloak
keycloak_realm=identus
keycloak_admin_user=admin
keycloak_admin_password=admin
KEYCLOAK_ADMIN_PASSWORD=admin
KEYCLOAK_ADMIN_USER=admin
KEYCLOAK_BASE_URL=http://localhost:8080/keycloak
KEYCLOAK_REALM=identus

agent_url=http://localhost:8080
AGENT_URL=http://localhost:8080

issuer_username=alice
issuer_password=1234
ISSUER_PASSWORD=1234
ISSUER_USERNAME=alice

holder_username=bob
holder_password=1234
HOLDER_PASSWORD=1234
HOLDER_USERNAME=bob

verifier_username=john
verifier_password=1234
VERIFIER_PASSWORD=1234
VERIFIER_USERNAME=john

0 comments on commit 59876b0

Please sign in to comment.