Skip to content

(docker) enable cross platform build using docker buildx (\#9073) - #9074

Merged
cmwaters merged 2 commits into
tendermint:mainfrom
highercomve:feature/cross_compiled_docker
Aug 4, 2022
Merged

cmwaters merged 2 commits into
tendermint:mainfrom
highercomve:feature/cross_compiled_docker

Conversation

@highercomve

@highercomve highercomve commented Jul 22, 2022 •

Copy link
Copy Markdown
Contributor

Closes #9073

Enable the possibility to receive the parameter TARGETPLATFORM from docker inside the Makefile (when is using buildx or DOCKER_BUILDKIT=1) to decide the correct GOARCH, GOOS and GOARM version.

With this change we can now cross build tendermint inside a container using the --platform parameter.

docker buildx build --platform linux/arm64,linux/amd64 -f DOCKER/Dockerfile -t tendermint/tendermint --push --progress plain .

@github-actions

github-actions Bot commented Aug 2, 2022

Copy link
Copy Markdown

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions Bot added the stale for use by stalebot label Aug 2, 2022
@cmwaters

cmwaters commented Aug 3, 2022

Copy link
Copy Markdown
Contributor

Hey @highercomve, do you mind basing this against main instead of master. Thanks!

@highercomve
highercomve force-pushed the feature/cross_compiled_docker branch from 4f61c6b to bccee81 Compare August 3, 2022 16:12
@highercomve
highercomve changed the base branch from master to main August 3, 2022 16:12
@highercomve
highercomve requested a review from a team August 3, 2022 16:12
@highercomve

Copy link
Copy Markdown
Contributor Author

Hey @highercomve, do you mind basing this against main instead of master. Thanks!

Hello @cmwaters i changed the base to main

@highercomve
highercomve force-pushed the feature/cross_compiled_docker branch from bccee81 to cf1eccd Compare August 3, 2022 16:15
@github-actions github-actions Bot removed the stale for use by stalebot label Aug 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Docker container with platform linux/arm64 was build with GOARCH=amd64

2 participants