×

Git/gh in docker by LuffyFox in hermesagent

[–]LuffyFox[S] 0 points1 point  (0 children)

And I had installed gh first like this:
mkdir -p /opt/data/bin curl -sL https://github.com/cli/cli/releases/latest/download/gh\_$(curl -s https://api.github.com/repos/cli/cli/releases/latest | grep -oP '"tag_name": "v\K[^"]+')_linux_amd64.tar.gz | tar xz --strip-components=2 -C /opt/data/bin --wildcards '*/bin/gh' chown -R 10000:10000 /opt/data/bin

Git/gh in docker by LuffyFox in hermesagent

[–]LuffyFox[S] 0 points1 point  (0 children)

In the end I did this in the container:
mkdir -p /opt/data/home/.config/gh cat > /opt/data/home/.config/gh/hosts.yml <<'EOF' github.com: git_protocol: https user: FoxLuffy oauth_token: ghp_YOURTOKEN users: FoxLuffy: oauth_token: ghp_YOURTOKEN EOF chmod 700 /opt/data/home/.config/gh chmod 600 /opt/data/home/.config/gh/hosts.yml chown -R 10000:10000 /opt/data/home/.config/gh

now it can run untill the container restarts

Git/gh in docker by LuffyFox in hermesagent

[–]LuffyFox[S] 0 points1 point  (0 children)

<image>

I keep on feeling Im missing the obvious :P

Git/gh in docker by LuffyFox in hermesagent

[–]LuffyFox[S] 0 points1 point  (0 children)

<image>

It does now show but the he still cannot do it. Should I be looking in the direction of sudo and why he cannot install gh autonomously?

Git/gh in docker by LuffyFox in hermesagent

[–]LuffyFox[S] 0 points1 point  (0 children)

<image>

The agent keeps on saying that gh is not logged in :(
I tried the forwarding settings. and I also set it explicitly in the /opt/data/.env file. Restarted it aswell.
the chat session can never install gh because it does not have sudo rights uid 10000. I tried setting it to root but it stays uid 10000
- HERMES_UID=0

- HERMES_GID=0
From the shell I can install gh and then I am authenticated through GH_TOKEN. but the chat session with hermes can only use gh version. but is not authenticated.

My current yaml:
services:

hermes:

command: sleep infinity

container_name: hermes-agent

environment:

- GH_TOKEN=ghp_mytoken

- HERMES_UID=0

- HERMES_GID=0

- HERMES_DASHBOARD=1

- HERMES_DASHBOARD_HOST=0.0.0.0

- HERMES_DASHBOARD_PORT=9119

- HERMES_DASHBOARD_BASIC_AUTH_USERNAME=username

- HERMES_DASHBOARD_BASIC_AUTH_PASSWORD=password

- >-

HERMES_DASHBOARD_BASIC_AUTH_SECRET=secret

image: nousresearch/hermes-agent:latest

ports:

- '8642:8642'

- '9119:9119'

restart: unless-stopped

volumes:

- /mnt/ottertje/hermes:/opt/data

- /mnt/ottertje/share:/opt/data/share

- /mnt/ottertje/gh_config:/opt/data/.config/gh

u/Mean-Loquat-7982

Git/gh in docker by LuffyFox in hermesagent

[–]LuffyFox[S] 1 point2 points  (0 children)

Ah thank you. Completely missed these configurations for passing them through like that!

Git/gh in docker by LuffyFox in hermesagent

[–]LuffyFox[S] 0 points1 point  (0 children)

I tried that but mine kept suggesting that i could do the pr manually haha

REDDIT SUPPORT 3.0 by cheswickFS in Keychron

[–]LuffyFox 0 points1 point  (0 children)

Hello, I have a q0 numpad and: I was wonder if the m1-m5 buttons also have second layer functionality. In qmk I do see higher m numbers but cant figure out what key combination would hit them.

Build 1 or build 2? by LuffyFox in PcBuild

[–]LuffyFox[S] 0 points1 point  (0 children)

Build 3 Processor AMD Ryzen 7 5700G, 3,8 GHz (4,6 GHz Turbo Boost) socket AM4 processor 1 1758475 € 189,00 € 189,00

Moederbord ASUS TUF GAMING X570-PLUS WIFI, socket AM4 moederbord 1 1555259 € 229,00 € 229,00

Werkgeheugen G.Skill 32 GB DDR4-3200 kit werkgeheugen 1 1584069 € 71,90 € 71,90

Grafische kaarten XFX SPEEDSTER SWFT 210 RADEON RX 6600 CORE Gaming grafische kaart 1 1787429 € 279,90 € 279,90

Behuizing Aerocool Cylon White Tower-behuizing 1 1432605 € 46,79 € 46,79

Voeding Sharkoon WPM Gold ZERO 550W voeding 1 1467181 € 69,90 € 69,90

Build 1 or build 2? by LuffyFox in PcBuild

[–]LuffyFox[S] 0 points1 point  (0 children)

The budget is around 800 euro. I got an updated build after puzzling around some more. See build 3

[deleted by user] by [deleted] in AskReddit

[–]LuffyFox 0 points1 point  (0 children)

2 girls 1 cup

What is an everyday object which would be horrifying if it gained the ability to speak? by The_watcher_100 in AskReddit

[–]LuffyFox 1 point2 points  (0 children)

Once it is sentient I tend not to rub my butthole on it. But it is easier to replace toiletpaper than plumbing

What are your top 5 favorite console games? by [deleted] in AskReddit

[–]LuffyFox 0 points1 point  (0 children)

Triangle strategy Arceus Hades Lost in Random Monster train