mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-05-08 03:01:47 +00:00
fix: add dashboard to CLI help epilogue and Docker CI smoke test
- Add hermes dashboard examples to the CLI help epilogue so users can discover the web UI command from 'hermes --help' output - Add an independent 'Test dashboard subcommand' CI step that verifies 'hermes dashboard --help' works in the Docker image, with its own mkdir/chown setup to remain independent of the prior smoke test step - Prevents regressions like #9153 where the dashboard subcommand was present in source but missing from the published Docker image Closes #9153
This commit is contained in:
parent
4876959a19
commit
2f2f654486
2 changed files with 17 additions and 2 deletions
16
.github/workflows/docker-publish.yml
vendored
16
.github/workflows/docker-publish.yml
vendored
|
|
@ -65,19 +65,31 @@ jobs:
|
||||||
|
|
||||||
- name: Test image starts
|
- name: Test image starts
|
||||||
run: |
|
run: |
|
||||||
|
mkdir -p /tmp/hermes-test
|
||||||
|
sudo chown -R 10000:10000 /tmp/hermes-test
|
||||||
# The image runs as the hermes user (UID 10000). GitHub Actions
|
# The image runs as the hermes user (UID 10000). GitHub Actions
|
||||||
# creates /tmp/hermes-test root-owned by default, which hermes
|
# creates /tmp/hermes-test root-owned by default, which hermes
|
||||||
# can't write to — chown it to match the in-container UID before
|
# can't write to — chown it to match the in-container UID before
|
||||||
# bind-mounting. Real users doing `docker run -v ~/.hermes:...`
|
# bind-mounting. Real users doing `docker run -v ~/.hermes:...`
|
||||||
# with their own UID hit the same issue and have their own
|
# with their own UID hit the same issue and have their own
|
||||||
# remediations (HERMES_UID env var, or chown locally).
|
# remediations (HERMES_UID env var, or chown locally).
|
||||||
mkdir -p /tmp/hermes-test
|
|
||||||
sudo chown -R 10000:10000 /tmp/hermes-test
|
|
||||||
docker run --rm \
|
docker run --rm \
|
||||||
-v /tmp/hermes-test:/opt/data \
|
-v /tmp/hermes-test:/opt/data \
|
||||||
--entrypoint /opt/hermes/docker/entrypoint.sh \
|
--entrypoint /opt/hermes/docker/entrypoint.sh \
|
||||||
nousresearch/hermes-agent:test --help
|
nousresearch/hermes-agent:test --help
|
||||||
|
|
||||||
|
- name: Test dashboard subcommand
|
||||||
|
run: |
|
||||||
|
mkdir -p /tmp/hermes-test
|
||||||
|
sudo chown -R 10000:10000 /tmp/hermes-test
|
||||||
|
# Verify the dashboard subcommand is included in the Docker image.
|
||||||
|
# This prevents regressions like #9153 where the dashboard command
|
||||||
|
# was present in source but missing from the published image.
|
||||||
|
docker run --rm \
|
||||||
|
-v /tmp/hermes-test:/opt/data \
|
||||||
|
--entrypoint /opt/hermes/docker/entrypoint.sh \
|
||||||
|
nousresearch/hermes-agent:test dashboard --help
|
||||||
|
|
||||||
- name: Log in to Docker Hub
|
- name: Log in to Docker Hub
|
||||||
if: github.event_name == 'push' && github.ref == 'refs/heads/main' || github.event_name == 'release'
|
if: github.event_name == 'push' && github.ref == 'refs/heads/main' || github.event_name == 'release'
|
||||||
uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3
|
uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3
|
||||||
|
|
|
||||||
|
|
@ -70,6 +70,9 @@ Examples:
|
||||||
hermes logs --since 1h Lines from the last hour
|
hermes logs --since 1h Lines from the last hour
|
||||||
hermes debug share Upload debug report for support
|
hermes debug share Upload debug report for support
|
||||||
hermes update Update to latest version
|
hermes update Update to latest version
|
||||||
|
hermes dashboard Start web UI dashboard (port 9119)
|
||||||
|
hermes dashboard --stop Stop running dashboard processes
|
||||||
|
hermes dashboard --status List running dashboard processes
|
||||||
|
|
||||||
For more help on a command:
|
For more help on a command:
|
||||||
hermes <command> --help
|
hermes <command> --help
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue