Skip to content

Commit

Permalink
Merge pull request ethereum#12 from flashbots/feat/multiplatform-dock…
Browse files Browse the repository at this point in the history
…er-images

Build multiplatform docker images (`amd64` + `arm64`)
  • Loading branch information
0x416e746f6e authored Feb 5, 2024
2 parents 4ba5e17 + cc7218a commit 9b2bee5
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,6 @@ profile.cov
logs/

tests/spec-tests/

# goreleaser
/dist
30 changes: 27 additions & 3 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,33 @@ dockers:
build_flag_templates:
- --platform=linux/amd64
image_templates:
- "flashbots/suave-execution-geth:{{ .ShortCommit }}"
- "flashbots/suave-execution-geth:{{ .Tag }}"
- "flashbots/suave-execution-geth:latest"
- "flashbots/suave-execution-geth:{{ .ShortCommit }}-amd64"
- "flashbots/suave-execution-geth:{{ .Tag }}-amd64"
- "flashbots/suave-execution-geth:latest-amd64"
- dockerfile: ./Dockerfile.suave
use: buildx
goarch: arm64
goos: linux
build_flag_templates:
- --platform=linux/arm64
image_templates:
- "flashbots/suave-execution-geth:{{ .ShortCommit }}-arm64"
- "flashbots/suave-execution-geth:{{ .Tag }}-arm64"
- "flashbots/suave-execution-geth:latest-arm64"

docker_manifests:
- name_template: "flashbots/suave-execution-geth:{{ .ShortCommit }}"
image_templates:
- "flashbots/suave-execution-geth:{{ .ShortCommit }}-amd64"
- "flashbots/suave-execution-geth:{{ .ShortCommit }}-arm64"
- name_template: "flashbots/suave-execution-geth:{{ .Tag }}"
image_templates:
- "flashbots/suave-execution-geth:{{ .Tag }}-amd64"
- "flashbots/suave-execution-geth:{{ .Tag }}-arm64"
- name_template: "flashbots/suave-execution-geth:latest"
image_templates:
- "flashbots/suave-execution-geth:latest-amd64"
- "flashbots/suave-execution-geth:latest-arm64"

checksum:
name_template: "checksums.txt"
Expand Down
1 change: 1 addition & 0 deletions Dockerfile.suave
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ FROM debian:bullseye
LABEL "org.opencontainers.image.source"="https://github.com/flashbots/suave-execution-geth"

COPY ./suave-execution-geth /bin/
COPY ./suave-execution-geth /bin/geth

EXPOSE 8545 8546 30303 30303/udp
ENTRYPOINT ["suave-execution-geth"]
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,4 @@ release:
-v `pwd`/sysroot:/sysroot \
-w /go/src/$(PACKAGE_NAME) \
ghcr.io/goreleaser/goreleaser-cross:v1.21 \
release --clean
release --clean --auto-snapshot

0 comments on commit 9b2bee5

Please sign in to comment.