Skip to content

Commit

Permalink
ci-builder: add yq (ethereum-optimism#10033)
Browse files Browse the repository at this point in the history
* ci-builder: add yq

Adds `yq` to `ci-builder` so that we can read the yaml information
inside of the superchain registry.

`yq` is `jq` but for yaml, see https://github.com/mikefarah/yq

* hardcode yq version

Co-authored-by: Joshua Gutow <[email protected]>

* hardcode gotestsum version

Co-authored-by: Joshua Gutow <[email protected]>

---------

Co-authored-by: Joshua Gutow <[email protected]>
  • Loading branch information
tynes and trianglesphere authored Apr 3, 2024
1 parent 3c34770 commit dfb4985
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ops/docker/ci-builder/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -55,16 +55,18 @@ COPY ./versions.json ./versions.json
RUN go install github.com/ethereum/go-ethereum/cmd/abigen@$(jq -r .abigen < versions.json)
RUN go install github.com/ethereum/go-ethereum/cmd/geth@$(jq -r .geth < versions.json)

RUN go install gotest.tools/gotestsum@latest
RUN go install gotest.tools/gotestsum@v1.11.0
RUN go install github.com/vektra/mockery/[email protected]
RUN go install github.com/golangci/golangci-lint/cmd/[email protected]
RUN go install github.com/mikefarah/yq/[email protected]

# Strip binaries to reduce size
RUN strip /go/bin/gotestsum && \
strip /go/bin/mockery && \
strip /go/bin/golangci-lint && \
strip /go/bin/abigen && \
strip /go/bin/geth
strip /go/bin/geth && \
strip /go/bin/yq

FROM --platform=linux/amd64 debian:bullseye-slim as base-builder

Expand Down

0 comments on commit dfb4985

Please sign in to comment.