open-horizon / anax

Horizon agent control system
https://open-horizon.github.io/docs/anax/docs/
Apache License 2.0
73 stars 98 forks source link

Script to create files needed for OH service publishing from a docker-compose.yml file #2642

Open SanjeevKGupta opened 3 years ago

SanjeevKGupta commented 3 years ago

In order to on-board an application, developed using docker-compose, to open-horizon - a conversion utility will be highly productive. Even creating a boiler-plate/skeleton output would be 90% there and then hand-tweak rest of it as needed. Something like

hzn convert docker-compose.yml -o json horizon-files
bmpotter commented 3 years ago

I agree this would be useful. The thing that concerns me is the docker-compose yml file has tons of options. We couldn't support all of them, and documenting which we support and which we don't would be messy and probably confusing to the user. I don't see the core anax team having bandwidth to implement this and maintain it over time. So i think this would require someone else who wants to champion this and maintain it over time.

bmpotter commented 3 years ago

A couple of suggestions when implementing this: