Skip to content
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

add multi-arch images using ko #90

Merged
merged 1 commit into from
Nov 2, 2021

Conversation

ahmetb
Copy link
Collaborator

@ahmetb ahmetb commented Oct 26, 2021

This is an alternative take to #86.
Fixes #85.

advantages:

  • no Dockerfile
  • multi-arch images can be built/pushed in one command.
  • reproducible builds as they are timestamped to 0.

disadvantages:

  • limited to os/arch combonatios supported on the base
    image (gcr.io/distroless/static:nonroot) and linux/386
    is currently not published on distroless.
  • binaries are compiled twice
  • produced binaries in GH releases vs container images
    are not identical (there's visible size diff, needs debugging)
  • can't use OCI labels such as org.opencontainers.image.source
    but they are not critical as GitHub still associates them
    to the repo correctly and they probably will be supported in
    ko at some point.

PTAL @sxd @jzelinskie @mnencia

advantages:

* no Dockerfile
* multi-arch images can be built/pushed in one command.
* reproducible builds as they are timestamped to 0.

disadvantages:

* limited to os/arch combonatios supported on the base
  image (gcr.io/distroless/static:nonroot)
* binaries are compiled twice
* produced binaries in GH releases vs container images
  are not identical (there's visible size diff, needs debugging)
* can't use OCI labels such as `org.opencontainers.image.source`
  but they are not critical as GitHub still associates them
  to the repo correctly and they probably will be supported in
  ko at some point.

Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
@ahmetb ahmetb changed the title add multiarch images using ko add multi-arch images using ko Oct 26, 2021
@ahmetb
Copy link
Collaborator Author

ahmetb commented Nov 2, 2021

cc:@sxd I will go with this patch instead and cut a release.

@ahmetb ahmetb merged commit 5eb831d into grpc-ecosystem:master Nov 2, 2021
@ahmetb ahmetb deleted the ko-multiarch-images branch November 2, 2021 03:57
tony-assembly added a commit to mx51/grpc-health-probe that referenced this pull request Sep 8, 2022
* Fix rpc-timeout not being used correctly (grpc-ecosystem#91)

* add multi-arch images using ko (grpc-ecosystem#90)

* docs: adds documentation for RPC headers. (grpc-ecosystem#80)

* docs: update -rpc-header examples

Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>

* Release v0.4.6

* Add note on k8s 1.23 builtin grpc health probes

Alternative take on grpc-ecosystem#99.

* README.md: typo fix

* Pick up security fixes with new Go version (grpc-ecosystem#105)

* add support for ALTS transport (grpc-ecosystem#106)

* Release v0.4.8

* Release v0.4.9

* Release v0.4.9 (bump dependencies)

Fixes grpc-ecosystem#107.
Fixes grpc-ecosystem#112.
Fixes grpc-ecosystem#113.

* Release v0.4.10

* Upgrade go to 1.18 to resolve security vulnerability CVE-2022-27191 (grpc-ecosystem#115)

* Release v0.4.11

* Update dependencies

* Bump Go version

* Release v0.4.12

* updating code owners

Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
Co-authored-by: Neal Patel <neal@ineal.me>
Co-authored-by: Ahmet Alp Balkan <ahmetb@google.com>
Co-authored-by: José Carlos Chávez <jcchavezs@gmail.com>
Co-authored-by: Ahmet Alp Balkan <ahmetalpbalkan@gmail.com>
Co-authored-by: Idan Kamara <i@idank.me>
Co-authored-by: Ahmet Alp Balkan <ahmet@twitter.com>
Co-authored-by: David B <dbrenecki@protonmail.com>
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.

Only amd64 container images
1 participant