konpyutaika / nifikop

The NiFiKop NiFi Kubernetes operator makes it easy to run Apache NiFi on Kubernetes. Apache NiFI is a free, open-source solution that support powerful and scalable directed graphs of data routing, transformation, and system mediation logic.
https://konpyutaika.github.io/nifikop/
Apache License 2.0
126 stars 44 forks source link

Make nifikop docker image cross-platform #239

Closed mh013370 closed 1 year ago

mh013370 commented 1 year ago
Q A
Bug fix? no
New feature? yes
API breaks? no
Deprecations? no
Related tickets fixes #207
License Apache 2.0

What's in this PR?

PR #205 made cross-platform docker image builds possible. This PR makes the nifikop docker image published cross-platform following the below docs:

NOTE This change includes an update to the nifikop build image to install the docker buildx plugin. I've verified locally that the plugin does indeed get installed this way:

> docker build --build-arg GOLANG_VERSION=1.19 -t nifikop-build:latest .
...
   => => naming to docker.io/library/nifikop-build:latest 
> docker run -it --rm docker.io/library/nifikop-build:latest bash 
...
root@f49830ee84c5:/go/nifikop# docker buildx version
github.com/docker/buildx v0.10.4 c513d34049e499c53468deac6c4267ee72948f02

Why?

To enable running nifikop on multiple architectures.

Checklist