airconnect -Z to fix 100% cpu and hass Dockerfile #1
|
@ -1,5 +1,3 @@
|
|||
hass/
|
||||
|
||||
# ---> Python
|
||||
# Byte-compiled / optimized / DLL files
|
||||
__pycache__/
|
||||
|
|
|
@ -21,7 +21,7 @@ for `airupnp` (UPnP/Sonos):
|
|||
```shell
|
||||
# pass cmdline args:
|
||||
docker run --name airconnect-airupnp -it --net=host \
|
||||
git.sudo.is/ben/airconnect airupnp -l 1000:2000
|
||||
git.sudo.is/ben/airconnect airupnp -Z -l 1000:2000
|
||||
|
||||
# if you want to mount an /etc/airupnp.xml config file instead:
|
||||
docker run --name airconnect-airupnp -it --net=host \
|
||||
|
@ -29,6 +29,10 @@ docker run --name airconnect-airupnp -it --net=host \
|
|||
git.sudo.is/ben/airconnect airupnp
|
||||
```
|
||||
|
||||
here the `-Z` argument is importabt, it instructs
|
||||
airconnect to not listen to input on stdin. otherwise
|
||||
it will loop indefinitely and use 100% cpu.
|
||||
|
||||
for `aircast` (Chromecast):
|
||||
|
||||
```shell
|
||||
|
|
|
@ -38,7 +38,7 @@ fi
|
|||
if [ "$ARGS" = "" ]; then
|
||||
if [ "$PROG" = "airupnp" ]; then
|
||||
# set default args for airupnp if not set
|
||||
ARGS="-x $AIRCONNECT_AIRUPNP_CONFIG"
|
||||
ARGS="-Z -x $AIRCONNECT_AIRUPNP_CONFIG"
|
||||
|
||||
elif [ "$PROG" = "aircast" ]; then
|
||||
# no default args for aircast
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
.git/
|
||||
core/.git/
|
|
@ -0,0 +1 @@
|
|||
core/
|
|
@ -0,0 +1,8 @@
|
|||
# clone hass repo, build their Dockerfile
|
||||
# "stable" is probably a branch
|
||||
|
||||
FROM ghcr.io/home-assistant/home-assistant:stable
|
||||
|
||||
RUN apk add python3-dev cups-dev gcc
|
||||
|
||||
ENTRYPOINT /init
|
Loading…
Reference in New Issue