Commit 160f4c3d authored by Mark Tyneway's avatar Mark Tyneway Committed by GitHub

deps: use docker golang:1.18.0-alpine3.15 (#2407)

This should speed up builds as more common
base images are built and also opens
up the possibility of using generics in the code.
Co-authored-by: default avatarmergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
parent 45582fcc
---
'@eth-optimism/batch-submitter-service': patch
'@eth-optimism/gas-oracle': patch
'@eth-optimism/indexer': patch
'@eth-optimism/l2geth-exporter': patch
'@eth-optimism/op-exporter': patch
'@eth-optimism/proxyd': patch
'@eth-optimism/teleportr': patch
'@eth-optimism/l2geth': patch
---
Update docker image to use golang 1.18.0
FROM golang:1.17.2-alpine3.13 AS builder
FROM golang:1.18.0-alpine3.15 as builder
ARG GITCOMMIT=docker
ARG GITDATE=docker
......@@ -11,7 +11,7 @@ COPY ./go/proxyd /app
RUN make proxyd
FROM alpine:3.14.2
FROM alpine:3.15
COPY ./go/proxyd/entrypoint.sh /bin/entrypoint.sh
......
FROM golang:1.17.3-alpine3.13 as builder
FROM golang:1.18.0-alpine3.15 as builder
RUN apk add --no-cache make gcc musl-dev linux-headers git jq bash
......@@ -10,7 +10,7 @@ RUN go mod graph | grep -v l2geth | grep -v bss-core | awk '{if ($1 !~ "@") prin
COPY ./go/batch-submitter/ ./
RUN make
FROM alpine:3.13
FROM alpine:3.15
RUN apk add --no-cache ca-certificates jq curl
COPY --from=builder /go/batch-submitter/batch-submitter /usr/local/bin/
......
FROM golang:1.15-alpine3.13 as builder
FROM golang:1.18.0-alpine3.15 as builder
RUN apk add --no-cache make gcc musl-dev linux-headers git jq bash
COPY ./go/gas-oracle /gas-oracle
RUN cd /gas-oracle && make gas-oracle
FROM alpine:3.13
FROM alpine:3.15
RUN apk add --no-cache ca-certificates jq curl
COPY --from=builder /gas-oracle/gas-oracle /usr/local/bin/
......
# Build Geth in a stock Go builder container
FROM golang:1.15-alpine3.13 as builder
FROM golang:1.18.0-alpine3.15 as builder
RUN apk add --no-cache make gcc musl-dev linux-headers git
......@@ -10,7 +10,7 @@ COPY ./l2geth ./
RUN make geth
# Pull Geth into a second stage deploy alpine container
FROM alpine:3.13
FROM alpine:3.15
RUN apk add --no-cache ca-certificates jq curl
COPY --from=builder /go-ethereum/build/bin/geth /usr/local/bin/
......
FROM golang:1.17.3-alpine3.13 as builder
FROM golang:1.18.0-alpine3.15 as builder
RUN apk add --no-cache make gcc musl-dev linux-headers git jq bash
......@@ -9,7 +9,7 @@ RUN go mod graph | grep -v indexer | awk '{if ($1 !~ "@") print $2}' | xargs -n
COPY ./go/indexer/ ./
RUN make
FROM alpine:3.13
FROM alpine:3.15
COPY --from=builder /go/indexer/indexer /usr/local/bin
......
......@@ -4,7 +4,7 @@ COPY ./go/l2geth-exporter /app/
WORKDIR /app/
RUN make build
FROM alpine:3.13
FROM alpine:3.15
RUN apk --no-cache add ca-certificates
WORKDIR /root/
COPY --from=builder /app/l2geth-exporter /usr/local/bin/
......
......@@ -4,7 +4,7 @@ COPY ./go/op-exporter /app/
WORKDIR /app/
RUN make build
FROM alpine:3.13
FROM alpine:3.15
RUN apk --no-cache add ca-certificates
WORKDIR /root/
COPY --from=builder /app/op-exporter /usr/local/bin/
......
FROM golang:1.17.3-alpine3.13 as builder
FROM golang:1.18.0-alpine3.15 as builder
RUN apk add --no-cache make gcc musl-dev linux-headers git jq bash
......@@ -9,7 +9,7 @@ RUN go mod graph | grep -v bss-core | awk '{if ($1 !~ "@") print $2}' | xargs -n
COPY ./go/teleportr/ ./
RUN make teleportr teleportr-api
FROM alpine:3.13
FROM alpine:3.15
RUN apk add --no-cache ca-certificates jq curl
COPY --from=builder /go/teleportr/teleportr /usr/local/bin/
......
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