From 48c374d366684281bb855e1320724c08a987d388 Mon Sep 17 00:00:00 2001 From: jonesho Date: Thu, 26 Sep 2024 12:34:35 +0800 Subject: [PATCH] feat: updated coordinator dockerfile and coordinator config for geth node gas price update --- ...ator-docker-traces-v2-override.config.toml | 2 +- coordinator/Dockerfile | 21 +++++++++---------- docker/compose.yml | 2 +- 3 files changed, 12 insertions(+), 13 deletions(-) diff --git a/config/coordinator/coordinator-docker-traces-v2-override.config.toml b/config/coordinator/coordinator-docker-traces-v2-override.config.toml index 8a72b0c35..6c2ac2d87 100644 --- a/config/coordinator/coordinator-docker-traces-v2-override.config.toml +++ b/config/coordinator/coordinator-docker-traces-v2-override.config.toml @@ -28,7 +28,7 @@ request-retry.max-retries=4 request-retry.backoff-delay="PT1S" request-retry.failures-warning-threshold=2 -[dynamic-gas-price-service] +[l2-network-gas-pricing.json-rpc-pricing-propagation] geth-gas-price-update-recipients=[ "http://l2-node:8545/" ] diff --git a/coordinator/Dockerfile b/coordinator/Dockerfile index 10ff0b233..003b610d8 100644 --- a/coordinator/Dockerfile +++ b/coordinator/Dockerfile @@ -1,21 +1,22 @@ -FROM openjdk:22-ea-17-slim-bookworm - -RUN apt-get update \ - && apt-get install curl -y \ - && apt-get install unzip -y \ - && apt-get clean \ - && rm -rf /var/lib/apt/lists/* - +FROM eclipse-temurin:21-jre-alpine AS builder WORKDIR /opt/consensys/linea/coordinator +RUN apk add --no-cache unzip + # copy application -COPY --from=zip ./coordinator.zip /opt/consensys/linea/coordinator/libs/ +COPY --from=zip ./coordinator.zip libs/ RUN unzip libs/coordinator.zip -d libs/ && mv libs/coordinator/lib/** libs/ && rm -R libs/coordinator/ +# FINAL image +FROM eclipse-temurin:21-jre-alpine +WORKDIR /opt/consensys/linea/coordinator + RUN mkdir -p /opt/consensys/linea/coordinator/logs RUN mkdir -p /opt/consensys/linea/coordinator/tmp/prover/request RUN mkdir -p /opt/consensys/linea/coordinator/tmp/prover/response +COPY --from=builder /opt/consensys/linea/coordinator/libs libs/ + # Build-time metadata as defined at http://label-schema.org ARG BUILD_DATE ARG VCS_REF @@ -29,5 +30,3 @@ LABEL org.label-schema.build-date=$BUILD_DATE \ org.label-schema.vendor="ConsenSys" \ org.label-schema.version=$VERSION \ org.label-schema.schema-version="1.0" - -WORKDIR /opt/consensys/linea/coordinator/ diff --git a/docker/compose.yml b/docker/compose.yml index 0ed8c9919..f1950b138 100644 --- a/docker/compose.yml +++ b/docker/compose.yml @@ -257,7 +257,7 @@ services: transaction-exclusion-api: hostname: transaction-exclusion-api container_name: transaction-exclusion-api - image: consensys/linea-transaction-exclusion-api:${TRANSACTION_EXCLUSION_API_TAG:-4689e88} + image: consensys/linea-transaction-exclusion-api:${TRANSACTION_EXCLUSION_API_TAG:-a1e7eee} profiles: [ "l2", "debug" ] restart: on-failure depends_on: