Open bjornmagnusson opened 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.
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.
I've published a daily built docker image for Balena-cli based on alpine https://hub.docker.com/r/samibourouis/balena-cli
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
Link to some balena internal / private discussion on this issue: https://www.flowdock.com/app/rulemotion/resin-projects/threads/enZ9VZOK1lFNUhq5N2AfTssafFb
[klutchell] This issue has attached support thread https://jel.ly.fish/26950b1f-dc6d-4999-b251-2f4b558a3c6f
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
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)
Hey @mathroc, thanks for your effort! Our CI still uses Sami's image, but when it starts failing we'll probably move to yours :^)
[nitishagar] This has attached https://jel.ly.fish/d80f9754-91c9-4b94-a59a-543e283335cc
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