Skip to content

Add devcontainer setup and upgrade SonarQube to 26.4.0#37

Merged
gitricko merged 6 commits into
mainfrom
hermes
May 11, 2026
Merged

Add devcontainer setup and upgrade SonarQube to 26.4.0#37
gitricko merged 6 commits into
mainfrom
hermes

Conversation

@gitricko
Copy link
Copy Markdown
Owner

This pull request sets up a development container for the Hermes-Agent project, automating the installation and configuration of required tools and updating dependencies for SonarQube analysis. The main changes focus on developer environment setup and keeping analysis tools up to date.

Development container setup:

  • Added .devcontainer/devcontainer.json to define the container environment, including VS Code extensions, and to specify commands to run after container creation and startup.
  • Added .devcontainer/post-create-cmd.sh script to automatically install and start modelrelay, install hermes-agent, and configure default settings for Hermes if it's a fresh environment.

Dependency updates:

  • Updated SonarQube Docker images in makefile.sh to use newer versions for both the CLI (sonar-scanner-cli:12.1) and server (sonarqube:26.4.0.121862-community).

gitricko added 2 commits May 11, 2026 02:24
…to 12.1

- Server: 25.5.0.107428-community → 26.4.0.121862-community
- CLI: 11.3 → 12.1
- Both images verified, manual scan test passed
Copilot AI review requested due to automatic review settings May 11, 2026 03:17
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a VS Code devcontainer configuration and bumps the default SonarQube-related Docker images used by makefile.sh to newer versions.

Changes:

  • Updated default Docker image tags for Sonar Scanner CLI and SonarQube server in makefile.sh.
  • Added .devcontainer/devcontainer.json to define a devcontainer (including extensions and lifecycle commands).
  • Added .devcontainer/post-create-cmd.sh to install/start modelrelay and install/configure hermes-agent on container creation.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.

File Description
makefile.sh Updates default Sonar Scanner CLI and SonarQube server Docker image tags.
.devcontainer/devcontainer.json Introduces devcontainer definition and post-create/start commands.
.devcontainer/post-create-cmd.sh Automates installation/startup of modelrelay and installation/configuration of hermes-agent.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .devcontainer/devcontainer.json Outdated
}
},
"postCreateCommand": "bash ./.devcontainer/post-create-cmd.sh",
"postStartCommand": "bash echo '[post-start-cmd.sh] Container started' >> /tmp/post-start-cmd.log"
Comment on lines +2 to +5
"name": "Hermes-Agent",
"customizations": {
"vscode": {
"extensions": ["saoudrizwan.claude-dev","joaompfp.hermes-ai-agent"]
Comment thread .devcontainer/post-create-cmd.sh Outdated

# Install modelrelay globally
sudo npm install modelrelay -g --prefix /usr/local/lib/modelrelay
sudo ln -s /usr/local/lib/modelrelay/bin/modelrelay /usr/local/bin/modelrelay
Comment thread .devcontainer/post-create-cmd.sh Outdated
fi

# Install hermes-agent
curl -fsSL https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scripts/install.sh | bash -s -- --skip-setup
gitricko added 4 commits May 11, 2026 03:20
Copilot: ln -s fails on rebuild if symlink already exists.
Using -f (force) ensures idempotent behavior.
Copilot: piping remote script from mutable main branch is a supply-chain
risk. Pinning to a release tag ensures reproducibility.
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 5 comments.

Comment on lines +1 to +9
{
"name": "Hermes-Agent",
"customizations": {
"vscode": {
"extensions": ["saoudrizwan.claude-dev","joaompfp.hermes-ai-agent"]
}
},
"postCreateCommand": "bash ./.devcontainer/post-create-cmd.sh",
"postStartCommand": "bash -c \"echo '[post-start-cmd.sh] Container started' >> /tmp/post-start-cmd.log\""
Comment on lines +2 to +6
"name": "Hermes-Agent",
"customizations": {
"vscode": {
"extensions": ["saoudrizwan.claude-dev","joaompfp.hermes-ai-agent"]
}
Comment on lines +16 to +17
HERMES_VERSION="v2026.5.7"
curl -fsSL "https://raw.githubusercontent.com/NousResearch/hermes-agent/${HERMES_VERSION}/scripts/install.sh" | bash -s -- --skip-setup
Comment on lines +8 to +12
echo "[post-create-cmd.sh] Starting modelrelay in the background..."
if command -v modelrelay &>/dev/null; then
setsid /usr/local/bin/modelrelay >> /tmp/modelrelay.log 2>&1 &
else
echo "[post-create-cmd.sh] modelrelay not found, skipping start"
Comment thread README.md
Comment on lines 63 to 66
<!-- start usage -->
```yaml
- uses: gitricko/sonarless@v1.3
- uses: gitricko/sonarless@v1.4
with:
@gitricko gitricko merged commit 4008feb into main May 11, 2026
11 checks passed
@gitricko gitricko deleted the hermes branch May 11, 2026 03:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants