From 7efb045ef0bc7febc235101e95582be6e63db862 Mon Sep 17 00:00:00 2001 From: FunkeyFlo Date: Mon, 29 Jul 2024 06:53:22 +0000 Subject: [PATCH] add easier setup for docker users --- add-ons/common/Dockerfile | 2 ++ docs/DOCKER.md | 2 +- ps5-mqtt/{entrypoint.sh => run-standalone.sh} | 0 3 files changed, 3 insertions(+), 1 deletion(-) rename ps5-mqtt/{entrypoint.sh => run-standalone.sh} (100%) diff --git a/add-ons/common/Dockerfile b/add-ons/common/Dockerfile index 828168f..54ceef4 100644 --- a/add-ons/common/Dockerfile +++ b/add-ons/common/Dockerfile @@ -18,7 +18,9 @@ COPY ./ps5-mqtt ./app RUN cd /app && \ npm install +# set permissions for both docker standalone and HA add-on startup scripts RUN chmod a+x /app/run.sh +RUN chmod a+x /app/run-standalone.sh EXPOSE 8645 diff --git a/docs/DOCKER.md b/docs/DOCKER.md index 3b458e5..75c6139 100644 --- a/docs/DOCKER.md +++ b/docs/DOCKER.md @@ -41,7 +41,7 @@ services: ps5-mqtt: container_name: PS5-MQTT # choose whatever name you like image: ghcr.io/funkeyflo/ps5-mqtt/amd64:latest # you can also use a specific version - entrypoint: /config/entrypoint.sh # the file that will be executed at startup + entrypoint: /app/run-standalone.sh # the file that will be executed at startup volumes: # we will use this volume to save credentials - ./config:/config network_mode: host # changing/omiting this option WILL BREAK the app. diff --git a/ps5-mqtt/entrypoint.sh b/ps5-mqtt/run-standalone.sh similarity index 100% rename from ps5-mqtt/entrypoint.sh rename to ps5-mqtt/run-standalone.sh