Skip to content

Commit

Permalink
Annother debug attempt.
Browse files Browse the repository at this point in the history
  • Loading branch information
QuinnDamerell committed Nov 11, 2024
1 parent 5d27e59 commit fc5dfc0
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
8 changes: 7 additions & 1 deletion homeway/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,13 @@ RUN whoami
# { "VersionFileDir":"/app", "AddonDataRootDir":"/data", "StorageDir":"/data", "LogsDir":"/data", "IsRunningInHaAddonEnv":true }
#
# Note if we every move past "python3", we need to update apparmor.
CMD [ "python3", "-m", "homeway_linuxhost", "eyAiVmVyc2lvbkZpbGVEaXIiOiIvYXBwIiwgIkFkZG9uRGF0YVJvb3REaXIiOiIvZGF0YSIsICJTdG9yYWdlRGlyIjoiL2RhdGEiLCAiTG9nc0RpciI6Ii9kYXRhIiwgIklzUnVubmluZ0luSGFBZGRvbkVudiI6dHJ1ZSB9" ]
#CMD [ "python3", "-m", "homeway_linuxhost", "eyAiVmVyc2lvbkZpbGVEaXIiOiIvYXBwIiwgIkFkZG9uRGF0YVJvb3REaXIiOiIvZGF0YSIsICJTdG9yYWdlRGlyIjoiL2RhdGEiLCAiTG9nc0RpciI6Ii9kYXRhIiwgIklzUnVubmluZ0luSGFBZGRvbkVudiI6dHJ1ZSB9" ]

# Set the run script exectuable.
RUN chmod a+x /app/run.sh

# Create a command to launch the run script.
CMD [ "/app/run.sh" ]

# Build arguments
ARG BUILD_ARCH
Expand Down
2 changes: 1 addition & 1 deletion homeway/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ image: ghcr.io/homewayio/homeway/{arch}
# Note when this version number changes, we must make a release to start a docker container build immediately, since HA will start looking for the new version.
# Basically: Make the final commit -> test and check lint actions (if a docker change, push to docker-test to ensure it builds) -> bump the version number -> create GitHub release.
# UPDATE THE CHANGE LOG!
version: 1.5.3
version: 1.5.4
11 changes: 11 additions & 0 deletions homeway/run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/usr/bin/with-contenv bashio

# Since we are running in a docker container, there's no need for dynamic configs.
# The repo root is /app, as we define in our Dockerfile
# The storage root it the Home Assistant docker mapped dir, /data/
# Note that all of the data is stored in this flat dir, the config, storage data, and logs.

# This is the json config, that's base64 encoded and sent as an argument.
# { "VersionFileDir":"/app", "AddonDataRootDir":"/data", "StorageDir":"/data", "LogsDir":"/data", "IsRunningInHaAddonEnv":true }

python3 -m homeway_linuxhost eyAiVmVyc2lvbkZpbGVEaXIiOiIvYXBwIiwgIkFkZG9uRGF0YVJvb3REaXIiOiIvZGF0YSIsICJTdG9yYWdlRGlyIjoiL2RhdGEiLCAiTG9nc0RpciI6Ii9kYXRhIiwgIklzUnVubmluZ0luSGFBZGRvbkVudiI6dHJ1ZSB9

0 comments on commit fc5dfc0

Please sign in to comment.