cloudflare / cfssl

CFSSL: Cloudflare's PKI and TLS toolkit

Home Page:https://cfssl.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Adding multiarch support to cfssl docker image

shahidhs-ibm opened this issue · comments

commented

The cfssl docker images supports amd64 arch only. Are there any plans to extend its support to other architectures?

Also we did not got much clarity on how the docker images for cfssl are getting build and published. Could you please elaborate on how its done?

We feel that enabling docker buildx support will be the simplest way to achieve multi-arch support and we would like to provide assistance (if the idea sounds good). Please let us know your thoughts.

the docker build process is pretty rudimentary right now - just a make target that pushes to the registry: https://github.com/cloudflare/cfssl/blob/master/Makefile#L69-L73 that I run manually.

I think a github action that builds a multi-arch image (and then pushes to dockerhub) would be great. If you'd like to PR something that builds the image in a Github Action I'd be happy to add in the docker push portion with the relevant secrets!

commented

Thanks @nickysemenza for the positive response. We'll work on this feature and create a PR for same.

commented

@nickysemenza Thanks for publishing multi-arch images for cfssl.
I am able to pull the cfssl docker image on my s390x arch VM and able to run cfssl commands:

$ docker inspect cfssl/cfssl:master | grep -i arch
        "Architecture": "s390x",
        
$ docker run -it --entrypoint cfssl  cfssl/cfssl:master version
Version: 1.6.3
Runtime: go1.20.2

All looks good to me. 👍

great!