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

View File

@@ -1,8 +1,14 @@
ARG BUILD_FROM
FROM $BUILD_FROM
# Install requirements for add-on
RUN \
apk add --no-cache \
python3
WORKDIR /data
# Set shell
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
#SHELL ["/bin/bash", "-o", "pipefail", "-c"]
# Setup base system
#ARG BUILD_ARCH=amd64

View File

@@ -1,5 +1,5 @@
name: VirtualHere Client
version: "0.1.105"
version: "0.1.106"
slug: vhclient
description: VirtualHere Client
arch:
@@ -16,6 +16,12 @@ host_network: true
#hassio_role: manager
#homeassistant_api: true
#supervisor_api: true
ports:
8000/tcp: 8000
ingress: true
ingress_port: 8000
panel_icon: mdi:puzzle
panel_title: vhclient
devices:
- /dev/mem
privileged:
@@ -36,12 +42,9 @@ kernel_modules: true
options:
clientid: "vhclient"
autofind: false
usbdevices: ['hej']
schema:
clientid: str?
autofind: bool
usbdevices:
- str?
stage: experimental
init: false

View File

@@ -4,6 +4,10 @@ if bashio::config.has_value 'clientid'; then
bashio::log.info "Set ClientId"
fi
if bashio::config.has_value 'autofind'; then
bashio::log.info "Set AUTOFIND"
fi
#TEST
#bashio::addon.option 'usbdevices' { 'name': 'one', 'use': false}
#my_array=($(bashio::config 'usbdevices'))

View File

@@ -0,0 +1,5 @@
#!/usr/bin/with-contenv bashio
echo "Hello world!"
python3 -m http.server 8000

View File

@@ -0,0 +1 @@
longrun

View File

@@ -0,0 +1 @@
/etc/s6-overlay/s6-rc.d/http/run