Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"name": "Hermes-Agent",
"customizations": {
"vscode": {
"extensions": ["saoudrizwan.claude-dev","joaompfp.hermes-ai-agent"]
Comment on lines +2 to +5
}
Comment on lines +2 to +6
},
"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 +1 to +9
}
27 changes: 27 additions & 0 deletions .devcontainer/post-create-cmd.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#!/bin/bash

# Install modelrelay globally
sudo npm install modelrelay -g --prefix /usr/local/lib/modelrelay
sudo ln -sf /usr/local/lib/modelrelay/bin/modelrelay /usr/local/bin/modelrelay
sudo npm cache clean --force

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 on lines +8 to +12
fi

# Install hermes-agent
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 +16 to +17
npm cache clean --force
sudo rm -rf /var/lib/apt/lists/*

# Configure hermes defaults if first run
if command -v hermes &>/dev/null && [ -d "$HOME/.hermes/sessions" ] && [ -z "$(ls -A "$HOME/.hermes/sessions")" ]; then
echo "[post-create-cmd.sh] No sessions found, setting up default configuration for custom provider"
hermes config set model.provider custom
hermes config set model.base_url http://localhost:7352/v1
hermes config set model.default auto-fastest
fi
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
![GitHub Release](https://img.shields.io/github/v/release/gitricko/sonarless)
![GitHub commits since latest release](https://img.shields.io/github/commits-since/gitricko/sonarless/latest)

# Sonarless v1.3
# Sonarless v1.4

This developer-friendly CLI and GitHub Action enable SonarQube scanning for your repository without the need for a dedicated hosted SonarQube server. It starts a SonarQube Docker instance, allowing developers to scan code, check results, and generate a JSON metrics file for automation. This ensures you can easily assess and maintain the quality of your code.

Expand Down Expand Up @@ -62,7 +62,7 @@ This CLI works perfectly with Github CodeSpace

<!-- start usage -->
```yaml
- uses: gitricko/sonarless@v1.3
- uses: gitricko/sonarless@v1.4
with:
Comment on lines 63 to 66
# Folder path to scan from git-root
# Default: .
Expand Down
4 changes: 2 additions & 2 deletions makefile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ export SONAR_SOURCE_PATH=${SONAR_SOURCE_PATH:-"."}
export SONAR_METRICS_PATH=${SONAR_METRICS_PATH:-"./sonar-metrics.json"}
export SONAR_EXTENSION_DIR="${HOME}/.sonarless/extensions"

export DOCKER_SONAR_CLI=${DOCKER_SONAR_CLI:-"sonarsource/sonar-scanner-cli:11.3"}
export DOCKER_SONAR_SERVER=${DOCKER_SONAR_SERVER:-"sonarqube:25.5.0.107428-community"}
export DOCKER_SONAR_CLI=${DOCKER_SONAR_CLI:-"sonarsource/sonar-scanner-cli:12.1"}
export DOCKER_SONAR_SERVER=${DOCKER_SONAR_SERVER:-"sonarqube:26.4.0.121862-community"}

export CLI_NAME="sonarless"

Expand Down
Loading