Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/five-pets-speak.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@eth-optimism/js-builder': patch
---

Add abigen
5 changes: 5 additions & 0 deletions .changeset/itchy-walls-kneel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@eth-optimism/go-builder': patch
---

Add abigen and gotestsum to go-builder
4 changes: 4 additions & 0 deletions ops/docker/go-builder/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
FROM ethereum/client-go:alltools-v1.10.17 as geth

FROM golang:1.18.0-alpine3.15

COPY --from=geth /usr/local/bin/abigen /usr/local/bin/abigen

RUN apk add --no-cache make gcc musl-dev linux-headers git jq curl bash gzip ca-certificates openssh && \
go install gotest.tools/gotestsum@latest && \
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.45.2
Expand Down
16 changes: 11 additions & 5 deletions ops/docker/js-builder/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,21 @@
FROM ethereum/client-go:alltools-v1.10.17 as geth

FROM ghcr.io/foundry-rs/foundry:latest as foundry

FROM python:3.8.12-slim-buster

COPY --from=foundry /usr/local/bin/forge /usr/local/bin/forge
COPY --from=foundry /usr/local/bin/cast /usr/local/bin/cast
COPY --from=geth /usr/local/bin/abigen /usr/local/bin/abigen

RUN apt-get update && \
apt-get install -y curl openssh-client git build-essential ca-certificates && \
apt-get install -y curl openssh-client git build-essential ca-certificates musl && \
curl -sL https://deb.nodesource.com/setup_16.x -o nodesource_setup.sh && \
curl -sL https://go.dev/dl/go1.18.2.linux-amd64.tar.gz -o go1.18.2.linux-amd64.tar.gz && \
tar -C /usr/local/ -xzvf go1.18.2.linux-amd64.tar.gz && \
ln -s /usr/local/go/bin/gofmt /usr/local/bin/gofmt && \
bash nodesource_setup.sh && \
apt-get install -y nodejs && \
npm i -g yarn && \
npm i -g depcheck && \
pip install slither-analyzer

COPY --from=foundry /usr/local/bin/forge /usr/local/bin/forge
COPY --from=foundry /usr/local/bin/cast /usr/local/bin/cast
pip install slither-analyzer