Skip to content

Commit

Permalink
Fix build (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdehoog authored Oct 28, 2024
1 parent 72697dc commit d5ec28b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
5 changes: 4 additions & 1 deletion testnet/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ FROM golang:1.22 AS op-enclave

WORKDIR /app

COPY op-enclave/go.mod op-enclave/go.sum op-enclave/
RUN cd op-enclave && go mod download

COPY go.mod go.sum ./
RUN go mod download

Expand All @@ -26,7 +29,7 @@ COPY op-batcher/ op-batcher/
COPY op-da/ op-da/
COPY op-proposer/ op-proposer/

RUN go build -o bin/op-enclave ./op-enclave/cmd/enclave
RUN cd op-enclave && go build -o ../bin/op-enclave ./cmd/enclave
RUN go build -o bin/op-batcher ./op-batcher/cmd
RUN go build -o bin/op-proposer ./op-proposer/cmd
RUN go build -o bin/op-da ./op-da/cmd
Expand Down
12 changes: 6 additions & 6 deletions testnet/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ services:
op-geth:
build:
context: ..
dockerfile: /Dockerfile
dockerfile: testnet/Dockerfile
ports:
- "8545:8545"
command: [ "bash", "./entrypoint-geth.sh" ]
Expand All @@ -13,7 +13,7 @@ services:
op-node:
build:
context: ..
dockerfile: /Dockerfile
dockerfile: testnet/Dockerfile
depends_on:
- op-geth
- op-da
Expand All @@ -25,7 +25,7 @@ services:
op-da:
build:
context: ..
dockerfile: /Dockerfile
dockerfile: testnet/Dockerfile
command: [ "bash", "./entrypoint-da.sh" ]
volumes:
- ./data/da:/data
Expand All @@ -34,7 +34,7 @@ services:
op-batcher:
build:
context: ..
dockerfile: /Dockerfile
dockerfile: testnet/Dockerfile
depends_on:
- op-geth
- op-node
Expand All @@ -44,7 +44,7 @@ services:
op-proposer:
build:
context: ..
dockerfile: /Dockerfile
dockerfile: testnet/Dockerfile
depends_on:
- op-geth
- op-node
Expand All @@ -54,7 +54,7 @@ services:
op-enclave:
build:
context: ..
dockerfile: /Dockerfile
dockerfile: testnet/Dockerfile
command: [ "bash", "./entrypoint-enclave.sh" ]
env_file:
- .env

0 comments on commit d5ec28b

Please sign in to comment.