mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
Merge pull request #12 from flashbots/feat/multiplatform-docker-images
Build multiplatform docker images (`amd64` + `arm64`)
This commit is contained in:
commit
9b2bee565d
4 changed files with 32 additions and 4 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
|
@ -50,3 +50,6 @@ profile.cov
|
||||||
logs/
|
logs/
|
||||||
|
|
||||||
tests/spec-tests/
|
tests/spec-tests/
|
||||||
|
|
||||||
|
# goreleaser
|
||||||
|
/dist
|
||||||
|
|
|
||||||
|
|
@ -95,9 +95,33 @@ dockers:
|
||||||
build_flag_templates:
|
build_flag_templates:
|
||||||
- --platform=linux/amd64
|
- --platform=linux/amd64
|
||||||
image_templates:
|
image_templates:
|
||||||
- "flashbots/suave-execution-geth:{{ .ShortCommit }}"
|
- "flashbots/suave-execution-geth:{{ .ShortCommit }}-amd64"
|
||||||
- "flashbots/suave-execution-geth:{{ .Tag }}"
|
- "flashbots/suave-execution-geth:{{ .Tag }}-amd64"
|
||||||
- "flashbots/suave-execution-geth:latest"
|
- "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:
|
checksum:
|
||||||
name_template: "checksums.txt"
|
name_template: "checksums.txt"
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,7 @@ FROM debian:bullseye
|
||||||
LABEL "org.opencontainers.image.source"="https://github.com/flashbots/suave-execution-geth"
|
LABEL "org.opencontainers.image.source"="https://github.com/flashbots/suave-execution-geth"
|
||||||
|
|
||||||
COPY ./suave-execution-geth /bin/
|
COPY ./suave-execution-geth /bin/
|
||||||
|
COPY ./suave-execution-geth /bin/geth
|
||||||
|
|
||||||
EXPOSE 8545 8546 30303 30303/udp
|
EXPOSE 8545 8546 30303 30303/udp
|
||||||
ENTRYPOINT ["suave-execution-geth"]
|
ENTRYPOINT ["suave-execution-geth"]
|
||||||
|
|
|
||||||
2
Makefile
2
Makefile
|
|
@ -57,4 +57,4 @@ release:
|
||||||
-v `pwd`/sysroot:/sysroot \
|
-v `pwd`/sysroot:/sysroot \
|
||||||
-w /go/src/$(PACKAGE_NAME) \
|
-w /go/src/$(PACKAGE_NAME) \
|
||||||
ghcr.io/goreleaser/goreleaser-cross:v1.21 \
|
ghcr.io/goreleaser/goreleaser-cross:v1.21 \
|
||||||
release --clean
|
release --clean --auto-snapshot
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue