airconnect -Z to fix 100% cpu and hass Dockerfile #1

Merged
ben merged 4 commits from b/builds:main into main 2023-04-02 23:17:34 +00:00
7 changed files with 17 additions and 4 deletions

2
.gitignore vendored
View File

@ -1,5 +1,3 @@
hass/
# ---> Python
# Byte-compiled / optimized / DLL files
__pycache__/

View File

@ -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

View File

@ -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

2
hass/.dockerignore Normal file
View File

@ -0,0 +1,2 @@
.git/
core/.git/

1
hass/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
core/

0
hass/.pipeline/empty.env Normal file
View File

8
hass/Dockerfile Normal file
View File

@ -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