Skip to content

Commit

Permalink
Fixed integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vsuharnikov committed Dec 13, 2024
1 parent e51a34e commit 2bf10b2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ class BesuContainer(network: NetworkImpl, number: Int, ip: String)(implicit http
protected override val container = new GenericContainer(DockerImages.BesuExecutionClient)
.withNetwork(network)
.withExposedPorts(RpcPort, EnginePort)
.withEnv("NODE_NUMBER", s"$number")
.withEnv("LOG4J_CONFIGURATION_FILE", "/config/log4j2.xml")
.withEnv("ROOT_LOG_FILE_LEVEL", "TRACE")
.withFileSystemBind(s"$ConfigsDir/ec-common/genesis.json", "/genesis.json", BindMode.READ_ONLY)
.withFileSystemBind(s"$ConfigsDir/ec-common", "/etc/secrets", BindMode.READ_ONLY)
.withFileSystemBind(s"$ConfigsDir/besu", "/config", BindMode.READ_ONLY)
.withFileSystemBind(s"$ConfigsDir/besu/run-besu.sh", "/tmp/run.sh", BindMode.READ_ONLY)
.withFileSystemBind(s"$ConfigsDir/ec-common/p2p-key-$number.hex", "/etc/secrets/p2p-key", BindMode.READ_ONLY)
.withFileSystemBind(s"$logFile", "/opt/besu/logs/besu.log", BindMode.READ_WRITE)
.withCreateContainerCmdModifier { cmd =>
cmd
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,9 @@ class GethContainer(network: NetworkImpl, number: Int, ip: String)(implicit http
protected override val container = new GenericContainer(DockerImages.GethExecutionClient)
.withNetwork(network)
.withExposedPorts(RpcPort, EnginePort)
.withFileSystemBind(s"$ConfigsDir/ec-common/genesis.json", "/tmp/genesis.json", BindMode.READ_ONLY)
.withEnv("NODE_NUMBER", s"$number")
.withFileSystemBind(s"$ConfigsDir/ec-common", "/etc/secrets", BindMode.READ_ONLY)
.withFileSystemBind(s"$ConfigsDir/geth/run-geth.sh", "/tmp/run.sh", BindMode.READ_ONLY)
.withFileSystemBind(s"$ConfigsDir/ec-common/p2p-key-$number.hex", "/etc/secrets/p2p-key", BindMode.READ_ONLY)
.withFileSystemBind(s"$ConfigsDir/ec-common/jwt-secret-$number.hex", "/etc/secrets/jwtsecret", BindMode.READ_ONLY)
.withFileSystemBind(s"$logFile", "/root/logs/log", BindMode.READ_WRITE)
.withCreateContainerCmdModifier { cmd =>
cmd
Expand Down

0 comments on commit 2bf10b2

Please sign in to comment.