Skip to content

Commit

Permalink
feat: updated coordinator dockerfile and coordinator config for geth …
Browse files Browse the repository at this point in the history
…node gas price update
  • Loading branch information
jonesho committed Sep 26, 2024
1 parent a1e7eee commit 48c374d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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/"
]
21 changes: 10 additions & 11 deletions coordinator/Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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/
2 changes: 1 addition & 1 deletion docker/compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 48c374d

Please sign in to comment.