mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-05-17 04:31:55 +00:00
Merge pull request #12821 from NousResearch/fix_broken_docker_test
Fix for broken docker build
This commit is contained in:
commit
519faa6e76
1 changed files with 8 additions and 0 deletions
8
.github/workflows/docker-publish.yml
vendored
8
.github/workflows/docker-publish.yml
vendored
|
|
@ -54,6 +54,14 @@ jobs:
|
||||||
|
|
||||||
- name: Test image starts
|
- name: Test image starts
|
||||||
run: |
|
run: |
|
||||||
|
# The image runs as the hermes user (UID 10000). GitHub Actions
|
||||||
|
# creates /tmp/hermes-test root-owned by default, which hermes
|
||||||
|
# can't write to — chown it to match the in-container UID before
|
||||||
|
# bind-mounting. Real users doing `docker run -v ~/.hermes:...`
|
||||||
|
# with their own UID hit the same issue and have their own
|
||||||
|
# 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 \
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue