Skip to content

Commit

Permalink
Using linea besu package (#437)
Browse files Browse the repository at this point in the history
* Using linea-besu-package for local env

* Removed unnecessary containers
  • Loading branch information
Filter94 authored Dec 12, 2024
1 parent b868219 commit 8e2dbaf
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 39 deletions.
18 changes: 3 additions & 15 deletions docker/compose-local-dev-traces-v2.overrides.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,15 @@

services:
sequencer:
image: consensys/linea-besu-package:devnet-0d2fbde
volumes:
- ../config/common/traces-limits-besu-v2.toml:/var/lib/besu/traces-limits.toml:ro

l2-node-besu:
image: consensys/linea-besu-package:devnet-0d2fbde
volumes:
- ../config/common/traces-limits-besu-v2.toml:/var/lib/besu/traces-limits.toml:ro

linea-besu-sequencer-plugin-downloader:
command: [ "sh", "/file-downloader.sh", "https://github.com/Consensys/linea-sequencer/releases/download/v0.8.0-rc8.1/linea-sequencer-v0.8.0-rc8.1.jar", "/linea-besu-sequencer" ]

traces-node:
entrypoint: ['echo', 'forced exit as replaced by traces-node-v2']

Expand All @@ -22,11 +21,9 @@ services:
traces-node-v2:
hostname: traces-node-v2
container_name: traces-node-v2
image: consensys/linea-besu:24.12-delivery40
image: consensys/linea-besu-package:devnet-0d2fbde
profiles: [ "l2", "l2-bc", "debug", "external-to-monorepo" ]
depends_on:
traces-node-v2-plugin-downloader:
condition: service_completed_successfully
sequencer:
condition: service_healthy
ports:
Expand Down Expand Up @@ -56,7 +53,6 @@ services:
- ./config/traces-node-v2/traces-node-v2-config.toml:/var/lib/besu/traces-node-v2.config.toml:ro
- ./config/traces-node-v2/log4j.xml:/var/lib/besu/log4j.xml:ro
- ./config/linea-local-dev-genesis-PoA-besu.json/:/var/lib/besu/genesis.json:ro
- ../tmp/traces-node-v2/plugins:/opt/besu/plugins/
- ../tmp/local/:/data/:rw
networks:
linea:
Expand Down Expand Up @@ -86,14 +82,6 @@ services:
linea:
ipv4_address: 11.11.11.109

traces-node-v2-plugin-downloader:
image: busybox:1.36.1
# profiles: ["l2", "l2-bc"] this works locally but breakes on CI, maybe Docker compose version issue
command: [ "sh", "/file-downloader.sh", "https://github.com/Consensys/linea-tracer/releases/download/v0.8.0-rc8/linea-tracer-v0.8.0-rc8.jar", "/traces-node-v2" ]
volumes:
- ./scripts/file-downloader.sh:/file-downloader.sh:ro
- ../tmp/traces-node-v2/plugins:/traces-node-v2/

coordinator:
# ./gradlew :coordinator:app:shadowJar
# docker build coordinator --build-context=jar=./coordinator/app/build/libs/ -t local/linea-coordinator:latest
Expand Down
26 changes: 2 additions & 24 deletions docker/compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,8 @@ services:
sequencer:
hostname: sequencer
container_name: sequencer
image: consensys/linea-besu:${SEQUENCER_TAG:-24.12-delivery40}
image: consensys/linea-besu-package:${SEQUENCER_TAG:-mainnet-2af649e}
profiles: [ "l2", "l2-bc", "debug", "external-to-monorepo" ]
depends_on:
linea-besu-sequencer-plugin-downloader:
condition: service_completed_successfully
linea-besu-sequencer-finalized-tag-updater-plugin-downloader:
condition: service_completed_successfully
ports:
- "8545:8545"
- "8546:8546"
Expand Down Expand Up @@ -64,27 +59,11 @@ services:
- ./config/linea-besu-sequencer/key:/var/lib/besu/key:ro
- ./config/linea-besu-sequencer/log4j.xml:/var/lib/besu/log4j.xml:ro
- ../config/common/traces-limits-besu-v1.toml:/var/lib/besu/traces-limits.toml:ro
- ../tmp/linea-besu-sequencer/plugins:/opt/besu/plugins/
networks:
l1network:
linea:
ipv4_address: 11.11.11.101

linea-besu-sequencer-plugin-downloader:
image: busybox:1.36.1
# profiles: ["l2", "l2-bc"] this works locally but breakes on CI, maybe Docker compose version issue
command: [ "sh", "/file-downloader.sh", "https://github.com/Consensys/linea-sequencer/releases/download/v0.1.4-test38/besu-sequencer-plugins-v0.1.4-test38.jar", "/linea-besu-sequencer" ]
volumes:
- ./scripts/file-downloader.sh:/file-downloader.sh:ro
- ../tmp/linea-besu-sequencer/plugins:/linea-besu-sequencer/

linea-besu-sequencer-finalized-tag-updater-plugin-downloader:
image: busybox:1.36.1
command: [ "sh", "/file-downloader.sh", "https://github.com/Consensys/linea-monorepo/releases/download/finalized-tag-updater-v0.0.3/finalized-tag-updater-v0.0.3.jar", "/linea-besu-sequencer" ]
volumes:
- ./scripts/file-downloader.sh:/file-downloader.sh:ro
- ../tmp/linea-besu-sequencer/plugins:/linea-besu-sequencer/

l2-node:
container_name: l2-node
hostname: l2-node
Expand Down Expand Up @@ -121,7 +100,7 @@ services:
l2-node-besu:
hostname: l2-node-besu
container_name: l2-node-besu
image: consensys/linea-besu:24.12-delivery40
image: consensys/linea-besu-package:${SEQUENCER_TAG:-mainnet-2af649e}
profiles: [ "l2", "l2-bc", "debug", "external-to-monorepo" ]
depends_on:
sequencer:
Expand Down Expand Up @@ -160,7 +139,6 @@ services:
- ./config/l2-node-besu/log4j.xml:/var/lib/besu/log4j.xml:ro
- ./config/linea-local-dev-genesis-PoA-besu.json/:/var/lib/besu/genesis.json:ro
- ../config/common/traces-limits-besu-v1.toml:/var/lib/besu/traces-limits.toml:ro
- ../tmp/linea-besu-sequencer/plugins:/opt/besu/plugins/
- ../tmp/local/:/data/:rw
networks:
l1network:
Expand Down
1 change: 1 addition & 0 deletions docker/config/l2-node-besu/l2-node-besu-config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ metrics-port=9545
data-storage-format="BONSAI"

# plugins
plugins=["LineaEstimateGasEndpointPlugin","L1FinalizationTagUpdaterPlugin","LineaExtraDataPlugin", "LineaTransactionPoolValidatorPlugin"]
plugin-linea-module-limit-file-path="/var/lib/besu/traces-limits.toml"
plugin-linea-deny-list-path="/var/lib/besu/deny-list.txt"
plugin-linea-l1l2-bridge-contract="0xe537D669CA013d86EBeF1D64e40fC74CADC91987"
Expand Down
1 change: 1 addition & 0 deletions docker/config/linea-besu-sequencer/sequencer.config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ api-gas-and-priority-fee-upper-bound-coefficient=300
poa-block-txs-selection-max-time=1000

# plugins
plugins=["LineaEstimateGasEndpointPlugin","L1FinalizationTagUpdaterPlugin","LineaExtraDataPlugin", "LineaTransactionPoolValidatorPlugin"]
plugin-linea-module-limit-file-path="/var/lib/besu/traces-limits.toml"
plugin-linea-deny-list-path="/var/lib/besu/deny-list.txt"
plugin-linea-estimate-gas-compatibility-mode-enabled=false
Expand Down
1 change: 1 addition & 0 deletions docker/config/traces-node-v2/traces-node-v2-config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ metrics-port=9545
data-storage-format="BONSAI"

# plugins
plugins=["TracerReadinessPlugin","TracesEndpointServicePlugin","LineCountsEndpointServicePlugin","CaptureEndpointServicePlugin"]
plugin-linea-conflated-trace-generation-traces-output-path="/data/traces/v2/conflated"
plugin-linea-rpc-concurrent-requests-limit=1
plugin-linea-tracer-readiness-server-host="0.0.0.0"
Expand Down

0 comments on commit 8e2dbaf

Please sign in to comment.