From f7a5cf03e2c57c7c704848fa321b40a9679a66c4 Mon Sep 17 00:00:00 2001 From: Martin Bauer Date: Sun, 30 Jun 2019 22:57:34 +0200 Subject: [PATCH] fixes --- Dockerfile | 4 ++-- config_creation/manual_config.yaml | 2 +- docker-compose.yaml | 5 +++-- run_on_server.sh | 2 ++ 4 files changed, 8 insertions(+), 5 deletions(-) mode change 100644 => 100755 run_on_server.sh diff --git a/Dockerfile b/Dockerfile index 6514956..4a423b9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ FROM homeassistant/home-assistant -RUN apt-get update && apt-get install nodejs +RUN apt-get update && apt-get install -y nodejs WORKDIR /config -CMD [ "./run.sh" ] +CMD [ "./run_on_server.sh" ] diff --git a/config_creation/manual_config.yaml b/config_creation/manual_config.yaml index f87a008..9bd2943 100644 --- a/config_creation/manual_config.yaml +++ b/config_creation/manual_config.yaml @@ -92,7 +92,7 @@ media_player: vacuum: - platform: xiaomi_miio host: rockrobo - token: !secret local_ip + token: !secret vacuum_token group: !include groups.yaml diff --git a/docker-compose.yaml b/docker-compose.yaml index 0847ff7..b4db945 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -11,5 +11,6 @@ services: devices: - /dev/serial/by-id/usb-0658_0200-if00:/dev/ttyACM0 restart: always - ports: - - "8123:8123" + network_mode: host + #ports: + # - "8123:8123" diff --git a/run_on_server.sh b/run_on_server.sh old mode 100644 new mode 100755 index 2fa6f1f..4eda3bd --- a/run_on_server.sh +++ b/run_on_server.sh @@ -1,6 +1,8 @@ #!/bin/bash +cd /config ./make_config.sh server ./make_custom_frontend.sh +cd /usr/src/app python -m homeassistant --config /config \ No newline at end of file