test
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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'))
|
||||
|
||||
5
vhclient/rootfs/etc/s6-overlay/s6-rc.d/http/run
Executable file
5
vhclient/rootfs/etc/s6-overlay/s6-rc.d/http/run
Executable file
@@ -0,0 +1,5 @@
|
||||
#!/usr/bin/with-contenv bashio
|
||||
|
||||
echo "Hello world!"
|
||||
|
||||
python3 -m http.server 8000
|
||||
1
vhclient/rootfs/etc/s6-overlay/s6-rc.d/http/type
Normal file
1
vhclient/rootfs/etc/s6-overlay/s6-rc.d/http/type
Normal file
@@ -0,0 +1 @@
|
||||
longrun
|
||||
1
vhclient/rootfs/etc/s6-overlay/s6-rc.d/http/up
Normal file
1
vhclient/rootfs/etc/s6-overlay/s6-rc.d/http/up
Normal file
@@ -0,0 +1 @@
|
||||
/etc/s6-overlay/s6-rc.d/http/run
|
||||
Reference in New Issue
Block a user