The MIB2Q plugin and daemon monorepo for the MIB2 High head unit. It holds both halves of each product: the Java/Kotlin plugins and the native daemons they talk to.
| Product | Plugin | Native daemon | mibpkg package |
|---|---|---|---|
mib2q-tailscale |
tailscale-status icon/page |
tailscaled, tailscale, sntp, tsstatus, libtsclock.so |
tailscale |
mib2q-carmqtt |
carmqtt-status icon/page |
carmqtt |
carmqtt |
mib2q-rsync |
rsync-status icon/page |
rsyncd, rsync |
rsyncd |
mib2q-wireguard |
— | mibwg |
wireguard |
bike-rack |
bike-rack plugin | — | bike-rack |
hello-menu |
hello-menu plugin | — | hello-menu |
inputs-demo |
inputs-demo plugin | — | inputs-demo |
The SDK itself (api, runtime, adapter) lives in mib2q-plugin-sdk; the
package manager and host mibpkg binary live in mibpkg.
plugins/
bike-rack/ Gradle plugin
hello-menu/ Gradle plugin
inputs-demo/ Gradle plugin
mib2q-tailscale/
plugin/ Gradle + mibsdk.plugin: tailscale-status
daemon/ Gradle base: native Go sources, scripts, packaging
mib2q-carmqtt/
plugin/ Gradle + mibsdk.plugin: carmqtt-status
daemon/ Gradle base: native Rust sources, scripts, packaging
mib2q-rsync/
plugin/ Gradle + mibsdk.plugin: rsync-status
daemon/ Gradle base: native Rust sources, scripts, packaging
mib2q-wireguard/
daemon/ Gradle base: native Go sources, scripts, packaging
Only the plugin/ projects and the root-level plugins are SDK plugin builds;
the daemon/ projects use the base plugin and wrap the Docker/QNX scripts
with buildDaemon / packageDaemon tasks.
- JDK 17.
- A checkout of
mib2q-plugin-sdkat the version this repo'smibsdk.pluginasks for, after./gradlew publishLocal(or a hosted copy of itsbuild/repo). - A host
mibpkgbinary for the.mpktasks. - Docker plus the two private QNX toolchain images:
ghcr.io/complex256/qnx65-armv7-toolchain:8.5-go127 ghcr.io/complex256/qnx65-armv7-toolchain:8.5-rustdocker login ghcr.iowith a token that can read the packages.
gradle.properties leaves mibsdk.repo and mibsdk.mibpkg blank so no
machine-specific paths are committed. Pass them with -P (or set them in
~/.gradle/gradle.properties):
./gradlew :plugins:mib2q-tailscale:plugin:test \
-Pmibsdk.repo=file:///path/to/mib2q-plugin-sdk/build/repo
./gradlew :plugins:mib2q-tailscale:daemon:buildDaemon \
-Pmibsdk.repo=file:///path/to/mib2q-plugin-sdk/build/repoThe root mibsdk.plugin marker is resolved for every Gradle invocation, so
mibsdk.repo is currently needed even for daemon-only tasks; the daemon
projects themselves do not use the SDK artifacts.
# Java status plugins
./gradlew :plugins:mib2q-tailscale:plugin:test \
:plugins:mib2q-carmqtt:plugin:test
# Native binaries (Docker images required)
export QNX_GO_IMAGE=ghcr.io/complex256/qnx65-armv7-toolchain:8.5-go127
export QNX_RUST_IMAGE=ghcr.io/complex256/qnx65-armv7-toolchain:8.5-rust
./gradlew :plugins:mib2q-tailscale:daemon:buildDaemon \
:plugins:mib2q-wireguard:daemon:buildDaemon \
:plugins:mib2q-carmqtt:daemon:buildDaemon
# .mpk packages (one per product; the Tailscale and carmqtt packages include their
# status plugin, so build the daemon package, not a separate plugin package)
./gradlew :plugins:mib2q-tailscale:daemon:packageDaemon \
:plugins:mib2q-wireguard:daemon:packageDaemon \
:plugins:mib2q-carmqtt:daemon:packageDaemon \
-Pmibsdk.mibpkg=/path/to/mibpkgThe native packages install mibpkg-managed config:
tailscale:@config/authkey,@config/accept-routes; writable state in/mnt/persist/tailscale; servicetailscale.wireguard:@config/mibwg.conf; servicemibwg.carmqtt:@config/carmqtt.toml; servicecarmqtt(waits fortailnet).
.github/workflows/plugins.yml runs two build matrices:
- Java: SDK
publishLocal, host mibpkg, plugin tests and plugin.mpks. - Native: host mibpkg, private GHCR login, daemon
buildDaemon/packageDaemon, native.mpks.
Set the MIBSDK_MIBPKG_URL repository variable to the host (Linux) mibpkg
binary and GHCR_TOKEN to a token with read:packages for the private QNX
images. The SDK repo is public, so no SDK_REPO_TOKEN is needed.
Native CI is gated on the repository variable NATIVE_CI=true so a checkout
without the private image token stays green. Set it once GHCR_TOKEN and the
two images exist; the native matrix then runs on push (or use
workflow_dispatch).
Push a tag v* (for example v1.1.0). When both build matrices succeed, the
publish job adds the tag's packages to the official collection,
complex256/mibpkg-packages, as the release mib2q-plugins-<tag>. Tag releases
therefore require NATIVE_CI=true.
The feed is what cars subscribe to. It is built into mibpkg; a car with internet sees it as:
github:complex256/mibpkg-packages
Each feed release carries the previous index and sources.json forward, so
publishing this repository does not remove packages published by another
repository.
Required repository secret:
PACKAGES_TOKEN: a token withcontents: writeoncomplex256/mibpkg-packages. The workflow's defaultGITHUB_TOKENcan only write this repository.
To publish built packages locally:
MIBPKG=/path/to/mibpkg scripts/publish-feed.sh \
mib2q-plugins-v1.1.0 \
plugins/bike-rack/build/mibsdk/bike-rack-1.1.4.mpk \
plugins/hello-menu/build/mibsdk/hello-menu-1.4.4.mpk