diff --git a/.gitignore b/.gitignore index 4b891a2..d733a7f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,3 @@ -hass/ - # ---> Python # Byte-compiled / optimized / DLL files __pycache__/ diff --git a/airconnect/README.md b/airconnect/README.md index 13061cf..7d6abaf 100644 --- a/airconnect/README.md +++ b/airconnect/README.md @@ -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 diff --git a/airconnect/docker/entrypoint.sh b/airconnect/docker/entrypoint.sh index 40a4255..11c06ca 100755 --- a/airconnect/docker/entrypoint.sh +++ b/airconnect/docker/entrypoint.sh @@ -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 diff --git a/hass/.dockerignore b/hass/.dockerignore new file mode 100644 index 0000000..e1bffe5 --- /dev/null +++ b/hass/.dockerignore @@ -0,0 +1,2 @@ +.git/ +core/.git/ diff --git a/hass/.gitignore b/hass/.gitignore new file mode 100644 index 0000000..8157887 --- /dev/null +++ b/hass/.gitignore @@ -0,0 +1 @@ +core/ diff --git a/hass/.pipeline/empty.env b/hass/.pipeline/empty.env new file mode 100644 index 0000000..e69de29 diff --git a/hass/Dockerfile b/hass/Dockerfile new file mode 100644 index 0000000..4a7c9b7 --- /dev/null +++ b/hass/Dockerfile @@ -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