Prathamesh Musale
002d334b98
Part of [Update Optimism stack to use Bedrock release](https://www.notion.so/Update-Optimism-stack-to-use-Bedrock-release-e44a490247724a6095a9fbc19fba3bcd) Requires [Add an option to allow unprotected txs in geth](cerc-io/fixturenet-eth-stacks#8) - Port over existing `fixturenet-optimism` stack components from SO - Use external [fixturenet-eth](https://git.vdb.to/cerc-io/fixturenet-eth-stacks/src/branch/main/stack-orchestrator/stacks/fixturenet-eth) stack for L1 - Use latest Optimism releases ([optimism@v1.7.4](https://github.com/ethereum-optimism/optimism/releases/tag/v1.7.4) and [op-geth@v1.101311.0](https://github.com/ethereum-optimism/op-geth/releases/tag/v1.101311.0)) - Update Optimism L1 contracts deployment script - Update L2 genesis generation - Remove override on L1 script to allow unprotected txs and unlock an account - `fixturenet-eth` stack itself now has an option to allow unprotected txs; the raw tx bytes for create2 proxy contract deployment from Optimism docs is not `EIP155` compatible - Use pk of funded account for txs instead of unlocking it - Add updated instructions - Use upstream [foundry](https://github.com/foundry-rs/foundry/pkgs/container/foundry/209507574?tag=nightly-267e14fab654d9ce955dce64c0eb09f01c8538ee) as base image for `cerc/optimism-contracts` container - Support for arm64/Apple Silicon to be handled in a follow-on PR Reviewed-on: cerc-io/fixturenet-optimism-stack#1 Co-authored-by: Prathamesh Musale <prathamesh.musale0@gmail.com> Co-committed-by: Prathamesh Musale <prathamesh.musale0@gmail.com>
33 lines
744 B
Docker
33 lines
744 B
Docker
FROM golang:1.21.0-alpine3.18 as builder
|
|
|
|
ARG VERSION=v0.0.0
|
|
|
|
RUN apk add --no-cache make gcc musl-dev linux-headers git jq bash
|
|
|
|
# build op-node with the shared go.mod & go.sum files
|
|
COPY ./op-node /app/op-node
|
|
COPY ./op-chain-ops /app/op-chain-ops
|
|
COPY ./op-service /app/op-service
|
|
COPY ./op-bindings /app/op-bindings
|
|
COPY ./op-plasma /app/op-plasma
|
|
COPY ./op-conductor /app/op-conductor
|
|
COPY ./go.mod /app/go.mod
|
|
COPY ./go.sum /app/go.sum
|
|
COPY ./.git /app/.git
|
|
|
|
WORKDIR /app/op-node
|
|
|
|
RUN go mod download
|
|
|
|
ARG TARGETOS TARGETARCH
|
|
|
|
RUN make op-node VERSION="$VERSION" GOOS=$TARGETOS GOARCH=$TARGETARCH
|
|
|
|
FROM alpine:3.18
|
|
|
|
RUN apk add --no-cache openssl jq bash curl
|
|
|
|
COPY --from=builder /app/op-node/bin/op-node /usr/local/bin
|
|
|
|
CMD ["op-node"]
|