Crates.io | ohx-addon-publish |
lib.rs | ohx-addon-publish |
version | 0.0.1-preview |
source | src |
created_at | 2019-09-19 10:46:28.396898 |
updated_at | 2019-09-19 10:46:28.396898 |
description | This is the CLI to automate building and publishing an OHX home automation addon |
homepage | |
repository | https://github.com/openhab-nodes/cloud-addon-registry-cli |
max_upload_size | |
id | 165937 |
size | 177,624 |
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.
wget https://github.com/openhab-nodes/cloud-addon-registry-cli/releases/latest
or via Cargo cargo install ohx-addon-publish
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
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.
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