这是indexloc提供的服务,不要输入任何密码
Skip to content

Update docker build for multiarch and scratch #7

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Oct 26, 2023
Merged

Conversation

codedmart
Copy link
Contributor

@codedmart codedmart commented Oct 26, 2023

Couple of things going on here. But this adds multi arch support for amd and arm. To build multi arch and push to docker hub we use:
docker buildx build --platform linux/amd64,linux/arm64/v8 --push -t hasura/clickhouse-data-connector:2.34.0 .
Normal docker build to just use single arch locally.

  1. The final image is scratch
  2. The final size is ~35mb uncompressed and ~12 compressed
  3. The .cargo/config.toml is required for reasons I did not look into for the arm building side.

Copy link
Contributor

@BenoitRanque BenoitRanque left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Merging.

@BenoitRanque BenoitRanque merged commit 2a01773 into main Oct 26, 2023
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.

2 participants