Skip to content

Commit

Permalink
fix(container): ✨ better container defaults (and docs updates to match)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuar committed May 15, 2024
1 parent 3888aaf commit e9a3cb7
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
12 changes: 11 additions & 1 deletion .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,17 @@ A log will be very helpful to look into this bug report. To get the log:

1. Run `go-hass-agent` from a terminal or command-line with the `--log-level debug` flag set:
```shell
go-hass-agent --log-level debug run
# for package/binary installs:
go-hass-agent --log-level=debug run
# for containers:
# (adjust options as appropriate)
podman run --hostname go-hass-agent-container --name my-go-hass-agent \
--network host \
--volume go-hass-agent:/home/ubuntu \
--volume /proc:/host/proc:ro --volume /sys:/host/sys:ro \
--volume /var/run/dbus/system_bus_socket:/var/run/dbus/system_bus_socket:ro \
--volume /run/user/1000/bus:/run/user/1000/bus:ro \
ghcr.io/joshuar/go-hass-agent --log-level=debug run
```
2. Try to reproduce the issue.
3. After you have reproduced the issue, please (compress and) attach the `go-hass-agent.log` file found in the following location:
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,4 @@ rm -rf /var/lib/apt/lists/* /var/cache/apt/*
EOF
# set up run entrypoint/cmd
ENTRYPOINT ["go-hass-agent"]
CMD ["--terminal"]
CMD ["--terminal", "run"]
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ podman run --hostname go-hass-agent-container --name my-go-hass-agent \
--volume /proc:/host/proc:ro --volume /sys:/host/sys:ro \
--volume /var/run/dbus/system_bus_socket:/var/run/dbus/system_bus_socket:ro \
--volume /run/user/1000/bus:/run/user/1000/bus:ro \
ghcr.io/joshuar/go-hass-agent run
ghcr.io/joshuar/go-hass-agent # any additional options
```

Change the value passed to `--name` to a unique name for your running container
Expand Down

0 comments on commit e9a3cb7

Please sign in to comment.