Skip to content

Commit

Permalink
Added 'large' acp orbis deployment for 7 node tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jsimnz committed Apr 22, 2024
1 parent 098d0aa commit 37ecc38
Show file tree
Hide file tree
Showing 13 changed files with 454 additions and 0 deletions.
1 change: 1 addition & 0 deletions demo/acp-large/alice.seed
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dial high permit royal surprise sail worry order hospital add dynamic ghost will drive mobile onion tourist excuse round town caught riot gun acid
1 change: 1 addition & 0 deletions demo/acp-large/bob.seed
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
math strong powder vivid remind awful rapid vanish sell victory minor guitar peanut accident resist crew time outside train point book combine sunset bullet
135 changes: 135 additions & 0 deletions demo/acp-large/compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,135 @@
version: "3.9"

volumes:
demo-data:
driver: local
driver_opts:
type: none
device: ../acp-large
o: bind
sourcehub-data:
driver: local
driver_opts:
type: none
device: $HOME/.sourcehub
o: bind

x-orbisd: &orbisd
depends_on:
sourcehubd:
condition: service_started
tty: true
stdin_open: true
image: ko.local/orbisd
volumes:
- demo-data:/demo
- sourcehub-data:/root/.sourcehub
# For Linux platforms to access the host machine using the host.docker.internal DNS name.
extra_hosts:
- "host.docker.internal:host-gateway"

services:
orbisd1:
<<: *orbisd
command: ["start", "--config", "/demo/orbis.1.yaml"]
ports:
- "9001:9001"
- "8081:8081"
- "8091:8091"

orbisd2:
<<: *orbisd
depends_on:
orbisd1:
condition: service_started
command: ["start", "--config", "/demo/orbis.2.yaml"]
ports:
- "9002:9002"
- "8082:8082"
- "8092:8092"

orbisd3:
<<: *orbisd
depends_on:
orbisd1:
condition: service_started
command: ["start", "--config", "/demo/orbis.3.yaml"]
ports:
- "9003:9003"
- "8083:8083"
- "8093:8093"

orbisd4:
<<: *orbisd
depends_on:
orbisd1:
condition: service_started
command: ["start", "--config", "/demo/orbis.4.yaml"]
ports:
- "9004:9004"
- "8084:8084"
- "8094:8094"

orbisd5:
<<: *orbisd
depends_on:
orbisd1:
condition: service_started
command: ["start", "--config", "/demo/orbis.5.yaml"]
ports:
- "9005:9005"
- "8085:8085"
- "8095:8095"

orbisd6:
<<: *orbisd
depends_on:
orbisd1:
condition: service_started
command: ["start", "--config", "/demo/orbis.6.yaml"]
ports:
- "9006:9006"
- "8086:8086"
- "8096:8096"

orbisd7:
<<: *orbisd
depends_on:
orbisd1:
condition: service_started
command: ["start", "--config", "/demo/orbis.7.yaml"]
ports:
- "9007:9007"
- "8087:8087"
- "8097:8097"

sourcehubd-init:
image: ko.local/sourcehubd
volumes:
- demo-data:/demo
- sourcehub-data:/root/.sourcehub
entrypoint: /demo/sourcehub-init.sh

sourcehubd:
depends_on:
sourcehubd-init:
condition: service_completed_successfully
tty: true
stdin_open: true
image: ko.local/sourcehubd
volumes:
- demo-data:/demo
- sourcehub-data:/root/.sourcehub
command:
- start
- --rpc.laddr
- tcp://0.0.0.0:26657
- --log_level
- warn
- --minimum-gas-prices
- 0.0001stake
ports:
- "26657:26657"
- "26658:26658"
- "1317:1317"
- "4500:4500"
15 changes: 15 additions & 0 deletions demo/acp-large/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"manifest": {
"n": 3,
"t": 2,
"dkg": "rabin",
"pss": "avpss",
"pre": "elgamal",
"bulletin": "sourcehub",
"transport": "p2p",
"authentication": "jws-did",
"authorization": "ACP",
"nodes": [{"id":"16Uiu2HAm35sSr96x1TJHBTkWdcDH9P8twhTw92iDyq38XvyGzgZN","address":"/ip4/127.0.0.1/tcp/9001"},{"id":"16Uiu2HAmAVcM6V1PY8DdvzobyK5QZbwX5z3AA6wCSrCm6xUA79Xn","address":"/ip4/127.0.0.1/tcp/9002"},{"id":"16Uiu2HAkzjLLosHcV4LGvLY4vskda5NgMW4qmtfQ2uMbgFAoqghX","address":"/ip4/127.0.0.1/tcp/9003"}],
"nonce": 0
}
}
29 changes: 29 additions & 0 deletions demo/acp-large/orbis.1.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
grpc:
grpcURL: "0.0.0.0:8081"
restURL: "0.0.0.0:8091"
logging: true
utility: true

logger:
level: "debug"

host:
crypto:
seed: 1
type: secp256k1
listenAddresses:
- /ip4/0.0.0.0/tcp/9001

transport:
rendezvous: "orbis-transport"

db:
path: "data1"

cosmos:
chainId: sourcehub-testnet1
accountName: validator1
keyringBackend: test
addressPrefix: source
fees: 30stake
rpcAddress: http://host.docker.internal:26657
31 changes: 31 additions & 0 deletions demo/acp-large/orbis.2.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
grpc:
grpcURL: "0.0.0.0:8082"
restURL: "0.0.0.0:8092"
logging: true
utility: true

logger:
level: "debug"

host:
crypto:
seed: 2
type: secp256k1
listenAddresses:
- /ip4/0.0.0.0/tcp/9002
bootstrap_peers:
- /dns4/orbisd1/tcp/9001/p2p/16Uiu2HAm35sSr96x1TJHBTkWdcDH9P8twhTw92iDyq38XvyGzgZN

transport:
rendezvous: "orbis-transport"

db:
path: "data2"

cosmos:
chainId: sourcehub-testnet1
accountName: validator2
keyringBackend: test
addressPrefix: source
fees: 30stake
rpcAddress: http://host.docker.internal:26657
36 changes: 36 additions & 0 deletions demo/acp-large/orbis.3.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
grpc:
grpcURL: "0.0.0.0:8083"
restURL: "0.0.0.0:8093"
logging: true
utility: true

logger:
level: "debug"

host:
crypto:
seed: 3
type: secp256k1
listenAddresses:
- /ip4/0.0.0.0/tcp/9003
bootstrap_peers:
- /dns4/orbisd1/tcp/9001/p2p/16Uiu2HAm35sSr96x1TJHBTkWdcDH9P8twhTw92iDyq38XvyGzgZN

bulletin:
p2p:
rendezvous: "orbis-bulletin"
persistentPeers: "/dns4/orbisd1/tcp/9001/p2p/16Uiu2HAm35sSr96x1TJHBTkWdcDH9P8twhTw92iDyq38XvyGzgZN"

transport:
rendezvous: "orbis-transport"

db:
path: "data3"

cosmos:
chainId: sourcehub-testnet1
accountName: validator3
keyringBackend: test
addressPrefix: source
fees: 30stake
rpcAddress: http://host.docker.internal:26657
31 changes: 31 additions & 0 deletions demo/acp-large/orbis.4.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
grpc:
grpcURL: "0.0.0.0:8084"
restURL: "0.0.0.0:8094"
logging: true
utility: true

logger:
level: "debug"

host:
crypto:
seed: 4
type: secp256k1
listenAddresses:
- /ip4/0.0.0.0/tcp/9004
bootstrap_peers:
- /dns4/orbisd1/tcp/9001/p2p/16Uiu2HAm35sSr96x1TJHBTkWdcDH9P8twhTw92iDyq38XvyGzgZN

transport:
rendezvous: "orbis-transport"

db:
path: "data4"

cosmos:
chainId: sourcehub-testnet1
accountName: validator4
keyringBackend: test
addressPrefix: source
fees: 30stake
rpcAddress: http://host.docker.internal:26657
31 changes: 31 additions & 0 deletions demo/acp-large/orbis.5.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
grpc:
grpcURL: "0.0.0.0:8085"
restURL: "0.0.0.0:8095"
logging: true
utility: true

logger:
level: "debug"

host:
crypto:
seed: 5
type: secp256k1
listenAddresses:
- /ip4/0.0.0.0/tcp/9005
bootstrap_peers:
- /dns4/orbisd1/tcp/9001/p2p/16Uiu2HAm35sSr96x1TJHBTkWdcDH9P8twhTw92iDyq38XvyGzgZN

transport:
rendezvous: "orbis-transport"

db:
path: "data5"

cosmos:
chainId: sourcehub-testnet1
accountName: validator5
keyringBackend: test
addressPrefix: source
fees: 30stake
rpcAddress: http://host.docker.internal:26657
31 changes: 31 additions & 0 deletions demo/acp-large/orbis.6.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
grpc:
grpcURL: "0.0.0.0:8086"
restURL: "0.0.0.0:8096"
logging: true
utility: true

logger:
level: "debug"

host:
crypto:
seed: 6
type: secp256k1
listenAddresses:
- /ip4/0.0.0.0/tcp/9006
bootstrap_peers:
- /dns4/orbisd1/tcp/9001/p2p/16Uiu2HAm35sSr96x1TJHBTkWdcDH9P8twhTw92iDyq38XvyGzgZN

transport:
rendezvous: orbis-transport

db:
path: data6

cosmos:
chainId: sourcehub-testnet1
accountName: validator6
keyringBackend: test
addressPrefix: source
fees: 30stake
rpcAddress: http://host.docker.internal:26657
31 changes: 31 additions & 0 deletions demo/acp-large/orbis.7.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
grpc:
grpcURL: 0.0.0.0:8087
restURL: 0.0.0.0:8097
logging: true
utility: true

logger:
level: debug

host:
crypto:
seed: 7
type: secp256k1
listenAddresses:
- /ip4/0.0.0.0/tcp/9007
bootstrap_peers:
- /dns4/orbisd1/tcp/9001/p2p/16Uiu2HAm35sSr96x1TJHBTkWdcDH9P8twhTw92iDyq38XvyGzgZN

transport:
rendezvous: orbis-transport

db:
path: data7

cosmos:
chainId: sourcehub-testnet1
accountName: validator7
keyringBackend: test
addressPrefix: source
fees: 30stake
rpcAddress: http://host.docker.internal:26657
Loading

0 comments on commit 37ecc38

Please sign in to comment.