Skip to content

Commit

Permalink
branch docker arg support
Browse files Browse the repository at this point in the history
  • Loading branch information
protolambda authored and mslipper committed Sep 8, 2022
1 parent b50390c commit d4b5139
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
4 changes: 3 additions & 1 deletion clients/op-batcher/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
ARG branch=develop

FROM golang:1.18.0-alpine3.15 as builder

RUN apk add --no-cache make gcc musl-dev linux-headers git jq bash

RUN git clone https://github.com/ethereum-optimism/optimism /app
RUN git clone -b $branch https://github.com/ethereum-optimism/optimism /app

WORKDIR /app/op-batcher
RUN make op-batcher
Expand Down
4 changes: 3 additions & 1 deletion clients/op-l2/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
ARG branch=optimism-prototype

# Build Geth in a stock Go builder container
FROM golang:1.18-alpine as builder

RUN apk add --no-cache gcc musl-dev linux-headers git

RUN git clone https://github.com/ethereum-optimism/reference-optimistic-geth /go-ethereum
RUN git clone -b $branch https://github.com/ethereum-optimism/reference-optimistic-geth /go-ethereum

RUN cd /go-ethereum && go run build/ci.go install ./cmd/geth

Expand Down
4 changes: 3 additions & 1 deletion clients/op-node/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
ARG branch=develop

FROM golang:1.18.0-alpine3.15 as builder

RUN apk add --no-cache make gcc musl-dev linux-headers git jq bash

RUN git clone https://github.com/ethereum-optimism/optimism /app
RUN git clone -b $branch https://github.com/ethereum-optimism/optimism /app

WORKDIR /app/op-node
RUN make op-node
Expand Down
4 changes: 3 additions & 1 deletion clients/op-proposer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
ARG branch=develop

FROM golang:1.18.0-alpine3.15 as builder

RUN apk add --no-cache make gcc musl-dev linux-headers git jq bash

RUN git clone https://github.com/ethereum-optimism/optimism /app
RUN git clone -b $branch https://github.com/ethereum-optimism/optimism /app

WORKDIR /app/op-proposer
RUN make
Expand Down

0 comments on commit d4b5139

Please sign in to comment.