1 unstable release
0.0.1-preview | Sep 19, 2019 |
---|
#36 in #home
43KB
832 lines
Addon Registry Commandline tool
OHX is a modern smarthome solution, embracing technologies like software containers for language agnostic extensibility. Written in Rust with an extensive test suite, OHX is fast, efficient, secure and fun to work on.
This is the repository of the command line utility to publish Addons to the OHX Addon Registry.
How to get started
- Download the CLI on https://github.com/openhab-nodes/cloud-addon-registry-cli/releases
or via command line
wget https://github.com/openhab-nodes/cloud-addon-registry-cli/releases/latest
or via Cargocargo install ohx-addon-publish
- Install
podman
: https://podman.io/getting-started/installation. For Windows users also see Windows Subsystem for Linux Installation Guide for Windows 10.
The tool does the following:
- It validates your addon.yml Addon description file.
- Checks your login status. If not logged in yet, you will be redirected to https://openhabx.com/auth where you can create an account / login and grant the CLI access to your account.
- If the registry
- contains an Addon which matches with the addon-id of the current directory,
- but you are not the owner, the procedure will be aborted.
- The CLI builds your Addon for the architectures x86-64 and armv7 (raspberry pi 2+3) and armv8 (raspberry pi 4)
via the
Dockerfile
s found in the directory of the addon.yml file. - Uploads the container images to the docker.io container registry.
- Updates your addon.yml file to point to the uploaded images.
- Adds or updates your addon to the OHX Addon Registry.
Cross compiling for c / c++
One way is to use qemu (via a software container) and let the entire toolchain run under the target architecture:
sudo docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
Dependencies
~14–28MB
~417K SLoC