test
This commit is contained in:
+7
-1
@@ -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
|
||||||
|
|||||||
@@ -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
@@ -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
|
||||||
Reference in New Issue
Block a user