Skip to content

Commit

Permalink
Try #6384:
Browse files Browse the repository at this point in the history
  • Loading branch information
spacemesh-bors[bot] authored Nov 1, 2024
2 parents 559a443 + a473494 commit 270f7a9
Show file tree
Hide file tree
Showing 21 changed files with 1,815 additions and 95 deletions.
3 changes: 2 additions & 1 deletion activation_service_poc/config.standalone.client.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"trtl": "WARN",
"beacon": "ERROR",
"proposalBuilder": "ERROR",
"atxBuilder": "DEBUG"
"atxBuilder": "DEBUG",
"hare": "DEBUG"
},
"main": {
"node-service-address": "http://0.0.0.0:9099",
Expand Down
9 changes: 5 additions & 4 deletions activation_service_poc/config.standalone.node-service.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,14 @@
"logging": {
"trtl": "WARN",
"beacon": "ERROR",
"proposalBuilder": "ERROR"
"proposalBuilder": "ERROR",
"hare": "DEBUG"
},
"hare3": {
"enable": true
},
"main": {
"data-folder": "/tmp/spacemesh-node-service",
"filelock": "/tmp/spacemesh-node-service/node.lock"
},
"smeshing": {
"smeshing-start": false
}
}
6 changes: 3 additions & 3 deletions activation_service_poc/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: '3'

services:
activation-service:
image: spacemeshos/go-spacemesh-dev:activation-service-poc.0
image: ${IMAGE}
command: ["-c", "/config.json", "--node-service-address", "http://node-service:9099"]
volumes:
- /tmp/spacemesh-client:/tmp/spacemesh-client
Expand All @@ -11,8 +11,8 @@ services:
- spacemesh-net

node-service:
image: spacemeshos/go-spacemesh-dev:activation-service-poc.0
command: ["-c", "/config.json"]
image: ${IMAGE}
command: ["-c", "/config.json", "--smeshing-opts-datadir", "/tmp/spacemesh-node-post"]
volumes:
- /tmp/spacemesh-node-service:/tmp/spacemesh-node-service
- ./config.standalone.node-service.json:/config.json
Expand Down
14 changes: 14 additions & 0 deletions activation_service_poc/start.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash
#
cd ..
make dockerbuild-go
cd activation_service_poc

export IMAGE=$(docker images | head -n 2 | tail -n 1 | awk '{print $3}')

TIME=$(date -u -d '2 minutes' "+%Y-%m-%dT%H:%M:%S%:z")
jq ".genesis.\"genesis-time\" |= \"$TIME\"" config.standalone.client.json
jq ".genesis.\"genesis-time\" |= \"$TIME\"" config.standalone.node-service.json

rm -rf /tmp/spacemesh*
docker compose up
Loading

0 comments on commit 270f7a9

Please sign in to comment.