balena-io / balena-cli

The official balena CLI tool.
Apache License 2.0
452 stars 138 forks source link

Official Docker image #850

Open bjornmagnusson opened 6 years ago

bjornmagnusson commented 6 years ago

Is there any official/semi-official docker image with the resin-cli installed?

If not, is there an interest in having one?

Would like to have one to support easier CI/CD setup, primarily for deploying application to resin.io

pimterry commented 6 years ago

There isn't, as far as I know, but it's a very interesting idea!

Presumably this would mainly be useful to you because the current npm install process is dependent on your overall system node environment. Is that about right?

Once we move to distributing standalone binary builds instead, would that solve your problems, or is there something else you'd like to get from docker here?

Right now I think we're certainly open to this (we'll discuss a bit internally), but I suspect it's unlikely to be something we prioritise or officially actively support, unless there's a strong use case. All else being equal if possible I'd really like to reduce and simplify the number of distribution mechanisms, not add more.

bjornmagnusson commented 6 years ago

The standalone builds will definitely help, but not all the way. Main use case is to provide an build environment in CI/CD for interacting with resin.io using the CLI. Most of the cases, CI/CD environments are purely based on Docker. With and Docker, no additional installation/download of the CLI would be needed. That would speed and simplify the CI/CD pipeline dramatically. E.g. use image as build environment and trigger an deployment.

samibourouis commented 5 years ago

I've published a daily built docker image for Balena-cli based on alpine https://hub.docker.com/r/samibourouis/balena-cli

mathroc commented 3 years ago

It’s very nice of @samibourouis to provide those image but it feels like this should be an official image at https://hub.docker.com/r/balenalib/cli

pdcastro commented 3 years ago

Link to some balena internal / private discussion on this issue: https://www.flowdock.com/app/rulemotion/resin-projects/threads/enZ9VZOK1lFNUhq5N2AfTssafFb

jellyfish-bot commented 3 years ago

[klutchell] This issue has attached support thread https://jel.ly.fish/26950b1f-dc6d-4999-b251-2f4b558a3c6f

mathroc commented 3 years ago

unfortunately, @samibourouis image has not been updated in a while. So I’m here again to say it would be very welcome to have an up to date official image for balena-cli automatically build when releases are made

mathroc commented 3 years ago

for what it’s worth, I’ve created this docker image. It should be built daily automatically. config is here: https://github.com/texthtml/balena-cli-docker/

improvements are welcome. eg: tagging with the version. It can probably be done with the GitHub API and some GitHub Action magic. but it would be much easier if the build was made from this repository (feel free to copy anything in https://github.com/texthtml/balena-cli-docker/ if it can help you get started on building this automatically from this repo)

edorgeville commented 3 years ago

Hey @mathroc, thanks for your effort! Our CI still uses Sami's image, but when it starts failing we'll probably move to yours :^)

jellyfish-bot commented 1 year ago

[nitishagar] This has attached https://jel.ly.fish/d80f9754-91c9-4b94-a59a-543e283335cc