staterecover: adds blobscan to local stack (#279)

* staterecover: adds blobscan to local stack

* staterecover: adds blobscan env file

* connect port 4001 for blobscan-api

* statereover: improve test utils for code reuse

---------

Co-authored-by: thedarkjester <grant.southey@consensys.net>
This commit is contained in:
Pedro Novais
2024-11-21 10:08:07 +00:00
committed by GitHub
parent c0b28f1970
commit 3d5d4e6ab0
7 changed files with 238 additions and 42 deletions

View File

@@ -167,6 +167,34 @@ dockerCompose {
noRecreate = true
projectName = "docker"
}
localStackForStateRecover {
startedServices = [
"postgres",
"sequencer",
"l1-node-genesis-generator",
"l1-el-node",
"l1-cl-node",
"l2-node",
"blobscan-api",
"blobscan-indexer",
"redis",
// For debug
// "l1-blockscout",
// "l2-blockscout"
]
composeAdditionalArgs = ["--profile", "l1", "--profile", "l2", "--profile", "staterecover"]
useComposeFiles = ["${project.rootDir.path}/docker/compose.yml"]
waitForHealthyStateTimeout = Duration.ofMinutes(3)
waitForTcpPorts = false
removeOrphans = true
// this is to avoid recreating the containers
// specially l1-node-genesis-generator which corrupts the state if run more than once
// without cleaning the volumes
noRecreate = true
projectName = "docker"
environment.put("L1_GENESIS_TIME", "${Instant.now().plusSeconds(3).getEpochSecond()}")
}
}
static Boolean hasKotlinPlugin(Project proj) {