Skip to content

Commit 4f21ea0

Browse files
committed
Add unverified signer light resource
This Mithril signer node does not connect to its own Cardano node, but on the Mithril Aggregator node instead.
1 parent 3ab367e commit 4f21ea0

File tree

7 files changed

+49
-4
lines changed

7 files changed

+49
-4
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,7 @@ jobs:
381381
mithril_signers: |
382382
{
383383
"1" = {
384+
type = "unverified"
384385
pool_id = "pool18r62tz408lkgfu6pq5svwzkh2vslkeg6mf72qf3h8njgvzhx9ce",
385386
},
386387
}

.github/workflows/pre-release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ jobs:
163163
mithril_signers: |
164164
{
165165
"1" = {
166+
type = "unverified"
166167
pool_id = "pool18r62tz408lkgfu6pq5svwzkh2vslkeg6mf72qf3h8njgvzhx9ce",
167168
},
168169
}

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ jobs:
7979
mithril_signers: |
8080
{
8181
"1" = {
82+
type = "unverified"
8283
pool_id = "pool1zr907nmfsq5kalxdjju349nwg6f03lyfmcjfqcz52jf45gcgh03",
8384
},
8485
}
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Unverified Mithril Signer node running on top of shared Cardano node (from Mithril Aggregator)
2+
3+
version: "3.9"
4+
5+
services:
6+
mithril-signer:
7+
image: ghcr.io/input-output-hk/mithril-signer:${IMAGE_ID}
8+
container_name: mithril-signer-${SIGNER_ID}
9+
restart: always
10+
user: ${CURRENT_UID}
11+
profiles:
12+
- mithril
13+
- all
14+
environment:
15+
- RUST_BACKTRACE=1
16+
- AGGREGATOR_ENDPOINT=http://mithril-aggregator:8080/aggregator
17+
- NETWORK=${NETWORK}
18+
- PARTY_ID=${PARTY_ID}
19+
- RUN_INTERVAL=120000
20+
- DB_DIRECTORY=/mithril-aggregator/cardano/db
21+
- DATA_STORES_DIRECTORY=/mithril-signer-${SIGNER_ID}/mithril/stores
22+
- STORE_RETENTION_LIMIT=5
23+
- CARDANO_NODE_SOCKET_PATH=/ipc/node.socket
24+
- CARDANO_CLI_PATH=/app/bin/cardano-cli
25+
volumes:
26+
- ../data/${NETWORK}/mithril-signer-${SIGNER_ID}/mithril:/mithril-signer-${SIGNER_ID}/mithril
27+
- ../data/${NETWORK}/mithril-aggregator/cardano/db:/mithril-aggregator/cardano/db
28+
- ../data/${NETWORK}/mithril-aggregator/cardano/ipc:/ipc
29+
logging:
30+
driver: "json-file"
31+
options:
32+
max-size: "100m"
33+
max-file: "5"
34+
35+
networks:
36+
default:
37+
external:
38+
name: mithril_network

mithril-infra/assets/docker/docker-compose-signer-unverified.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Unverified Mithril Signer node running on top of its own Cardano node
2+
13
version: "3.9"
24

35
services:
@@ -47,15 +49,15 @@ services:
4749
- AGGREGATOR_ENDPOINT=http://mithril-aggregator:8080/aggregator
4850
- NETWORK=${NETWORK}
4951
- PARTY_ID=${PARTY_ID}
50-
- RUN_INTERVAL=240000
51-
- DB_DIRECTORY=/db
52+
- RUN_INTERVAL=120000
53+
- DB_DIRECTORY=/mithril-signer-${SIGNER_ID}/cardano/db
5254
- DATA_STORES_DIRECTORY=/mithril-signer-${SIGNER_ID}/mithril/stores
5355
- STORE_RETENTION_LIMIT=5
5456
- CARDANO_NODE_SOCKET_PATH=/ipc/node.socket
5557
- CARDANO_CLI_PATH=/app/bin/cardano-cli
5658
volumes:
5759
- ../data/${NETWORK}/mithril-signer-${SIGNER_ID}/mithril:/mithril-signer-${SIGNER_ID}/mithril
58-
- ../data/${NETWORK}/mithril-signer-${SIGNER_ID}/cardano/db:/db
60+
- ../data/${NETWORK}/mithril-signer-${SIGNER_ID}/cardano/db:/mithril-signer-${SIGNER_ID}/cardano/db
5961
- ../data/${NETWORK}/mithril-signer-${SIGNER_ID}/cardano/ipc:/ipc
6062
logging:
6163
driver: "json-file"

mithril-infra/mithril.signer.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ resource "null_resource" "mithril_signer" {
3434
"export IMAGE_ID=${var.mithril_image_id}",
3535
"export CURRENT_UID=$(id -u)",
3636
"export DOCKER_GID=$(getent group docker | cut -d: -f3)",
37-
"docker-compose -p $SIGNER_ID -f /home/curry/docker/docker-compose-signer-unverified.yaml --profile all up -d",
37+
"docker-compose -p $SIGNER_ID -f /home/curry/docker/docker-compose-signer-${each.value.type}.yaml --profile all up -d",
3838
]
3939
}
4040
}

mithril-infra/variables.tf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,10 +119,12 @@ variable "mithril_protocol_parameters" {
119119

120120
variable "mithril_signers" {
121121
type = map(object({
122+
type = string
122123
pool_id = string
123124
}))
124125
default = {
125126
"1" = {
127+
type = "unverified",
126128
pool_id = "pool15qde6mnkc0jgycm69ua0grwxmmu0tke54h5uhml0j8ndw3kcu9x",
127129
}
128130
}

0 commit comments

Comments
 (0)