support base

This commit is contained in:
Sebastian
2023-08-26 09:49:18 +02:00
parent 1d956f2ffb
commit 6ca3aa2d4b
12 changed files with 30007 additions and 5 deletions

46
base/Dockerfile Normal file
View File

@@ -0,0 +1,46 @@
FROM golang:1.19 as op
WORKDIR /app
ENV REPO=https://github.com/ethereum-optimism/optimism.git
ENV VERSION=v1.1.1
# for verification:
ENV COMMIT=89ed69d80bbec7f2b1dd69e7e48cb7119839d58a
RUN git clone $REPO --branch op-node/$VERSION --single-branch . && \
git switch -c branch-$VERSION && \
bash -c '[ "$(git rev-parse HEAD)" = "$COMMIT" ]'
RUN cd op-node && \
make op-node
FROM golang:1.19 as geth
WORKDIR /app
ENV REPO=https://github.com/ethereum-optimism/op-geth.git
ENV VERSION=v1.101200.1-rc.2
# for verification:
ENV COMMIT=368310232f16b7697d3a79ea7f946f0b2b21ab3f
# avoid depth=1, so the geth build can read tags
RUN git clone $REPO --branch $VERSION --single-branch . && \
git switch -c branch-$VERSION && \
bash -c '[ "$(git rev-parse HEAD)" = "$COMMIT" ]'
RUN go run build/ci.go install -static ./cmd/geth
FROM golang:1.19
RUN apt-get update && \
apt-get install -y jq curl && \
rm -rf /var/lib/apt/lists
WORKDIR /app
COPY --from=op /app/op-node/bin/op-node ./
COPY --from=geth /app/build/bin/geth ./
COPY geth-entrypoint .
COPY op-node-entrypoint .
COPY goerli ./goerli
COPY mainnet ./mainnet