This template helps you create a cockpit plugin for the Hilscher Connect Gateway.
enter your the Menu name you wish to have in the uiplugin/manifest.json file in the label value.
enter the start file of your app in the uiplugin/manifest.json file in the path value.
adjust your dockerfile accordingly
then
docker build --rm -f "Dockerfile.arm32v7" -t hilschercockpitpinger:latest .
or
docker build --rm -f "Dockerfile.x86" -t hilschercockpitpinger:latest .
then
docker run \
-v /usr/local/share/cockpit:/usr/local/share/cockpit/ \
-v /etc/gateway/mqtt-config.json:/etc/gateway/mqtt-config.json:ro \
hilschercockpitpinger:latest
add the following Container create options into the Container Create tab
{
"HostConfig": {
"Binds": [
"/usr/local/share/cockpit:/usr/local/share/cockpit",
"/etc/gateway/mqtt-config.json:/etc/gateway/mqtt-config.json:ro"
]
}
}