This commit is contained in:
Hans Karlinius
2024-11-26 08:27:30 +01:00
parent f7c0eca387
commit 8550f8c6c0
7 changed files with 25 additions and 5 deletions
+7 -1
View File
@@ -1,8 +1,14 @@
ARG BUILD_FROM ARG BUILD_FROM
FROM $BUILD_FROM FROM $BUILD_FROM
# Install requirements for add-on
RUN \
apk add --no-cache \
python3
WORKDIR /data
# Set shell # Set shell
SHELL ["/bin/bash", "-o", "pipefail", "-c"] #SHELL ["/bin/bash", "-o", "pipefail", "-c"]
# Setup base system # Setup base system
#ARG BUILD_ARCH=amd64 #ARG BUILD_ARCH=amd64
+7 -4
View File
@@ -1,5 +1,5 @@
name: VirtualHere Client name: VirtualHere Client
version: "0.1.105" version: "0.1.106"
slug: vhclient slug: vhclient
description: VirtualHere Client description: VirtualHere Client
arch: arch:
@@ -16,6 +16,12 @@ host_network: true
#hassio_role: manager #hassio_role: manager
#homeassistant_api: true #homeassistant_api: true
#supervisor_api: true #supervisor_api: true
ports:
8000/tcp: 8000
ingress: true
ingress_port: 8000
panel_icon: mdi:puzzle
panel_title: vhclient
devices: devices:
- /dev/mem - /dev/mem
privileged: privileged:
@@ -36,12 +42,9 @@ kernel_modules: true
options: options:
clientid: "vhclient" clientid: "vhclient"
autofind: false autofind: false
usbdevices: ['hej']
schema: schema:
clientid: str? clientid: str?
autofind: bool autofind: bool
usbdevices:
- str?
stage: experimental stage: experimental
init: false init: false
@@ -4,6 +4,10 @@ if bashio::config.has_value 'clientid'; then
bashio::log.info "Set ClientId" bashio::log.info "Set ClientId"
fi fi
if bashio::config.has_value 'autofind'; then
bashio::log.info "Set AUTOFIND"
fi
#TEST #TEST
#bashio::addon.option 'usbdevices' { 'name': 'one', 'use': false} #bashio::addon.option 'usbdevices' { 'name': 'one', 'use': false}
#my_array=($(bashio::config 'usbdevices')) #my_array=($(bashio::config 'usbdevices'))
+5
View File
@@ -0,0 +1,5 @@
#!/usr/bin/with-contenv bashio
echo "Hello world!"
python3 -m http.server 8000
@@ -0,0 +1 @@
longrun
@@ -0,0 +1 @@
/etc/s6-overlay/s6-rc.d/http/run