Commit 32c82ea9 authored by Diederik Loerakker's avatar Diederik Loerakker Committed by GitHub

ops-bedrock: move docker files into their module dirs (#2986)

Co-authored-by: default avatarmergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
parent d55b80a0
......@@ -2,6 +2,8 @@ FROM golang:1.18.0-alpine3.15 as builder
RUN apk add --no-cache make gcc musl-dev linux-headers git jq bash
# build op-batcher with local monorepo go modules
COPY ./op-batcher/docker.go.work /app/go.work
COPY ./op-bindings /app/op-bindings
COPY ./op-node /app/op-node
COPY ./op-proposer /app/op-proposer
......
go 1.18
use (
./op-batcher
./op-bindings
./op-node
./op-proposer
)
......@@ -2,15 +2,12 @@ FROM golang:1.18.0-alpine3.15 as builder
RUN apk add --no-cache make gcc musl-dev linux-headers git jq bash
COPY ./op-node/go.mod /app/op-node/go.mod
COPY ./op-node/go.sum /app/op-node/go.sum
# build op-node with local monorepo go modules
COPY ./op-node/docker.go.work /app/go.work
COPY ./op-bindings /app/op-bindings
COPY ./op-node /app/op-node
WORKDIR /app/op-node
RUN go mod download -x
COPY ./op-node /app/op-node
RUN make op-node
......
go 1.18
use (
./op-bindings
./op-node
)
......@@ -2,6 +2,8 @@ FROM golang:1.18.0-alpine3.15 as builder
RUN apk add --no-cache make gcc musl-dev linux-headers git jq bash
# build op-proposer with local monorepo go modules
COPY ./op-proposer/docker.go.work /app/go.work
COPY ./op-bindings /app/op-bindings
COPY ./op-node /app/op-node
COPY ./op-proposer /app/op-proposer
......
go 1.18
use (
./op-bindings
./op-node
./op-proposer
)
......@@ -42,7 +42,7 @@ services:
- l2
build:
context: ../
dockerfile: ./ops-bedrock/Dockerfile.node
dockerfile: ./op-node/Dockerfile
command: >
op-node
--l1=ws://l1:8546
......@@ -81,7 +81,7 @@ services:
- op-node
build:
context: ../
dockerfile: ./ops-bedrock/Dockerfile.proposer
dockerfile: ./op-proposer/Dockerfile
environment:
L1_ETH_RPC: http://l1:8545
L2_ETH_RPC: http://l2:8545
......@@ -102,7 +102,7 @@ services:
- op-node
build:
context: ../
dockerfile: ./ops-bedrock/Dockerfile.batcher
dockerfile: ./op-batcher/Dockerfile
environment:
L1_ETH_RPC: http://l1:8545
L2_ETH_RPC: http://l2:8545
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment