Skip to content

Commit

Permalink
Add a new task to start the docker container in debug mode.
Browse files Browse the repository at this point in the history
Signed-off-by: Alfredo Gutierrez <[email protected]>
  • Loading branch information
AlfredoG87 committed Jul 27, 2024
1 parent e39f64d commit cabba0e
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
12 changes: 11 additions & 1 deletion buildSrc/src/main/kotlin/com.hedera.block.conventions.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -93,4 +93,14 @@ tasks.check {
dependsOn(tasks.jacocoTestReport)
// Check dependency scopes in module-info.java
dependsOn(tasks.checkAllModuleInfo)
}
}

tasks.jacocoTestCoverageVerification {
violationRules {
rule {
limit {
minimum = "0.80".toBigDecimal() // 95% Coverage threshold
}
}
}
}
7 changes: 6 additions & 1 deletion server/docker/update-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# This script is called by gradle and get the current project version as an input param

if [ $# -lt 1 ]; then
echo "USAGE: $0 <VERSION>"
echo "USAGE: $0 <VERSION> <DEBUG>"
exit 1
fi

Expand All @@ -13,4 +13,9 @@ echo "REGISTRY_PREFIX=" >> .env
# Storage root path, this is temporary until we have a proper .properties file for all configs
echo "BLOCKNODE_STORAGE_ROOT_PATH=/app/storage" >> .env

if [ $# -eq 2 ]; then
echo "SERVER_OPTS='-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005'" >> .env
fi

echo "DEBUG $2"
echo "VERSION/TAG UPDATED TO $1"

0 comments on commit cabba0e

Please sign in to comment.