Skip to content

Pr@main refactor healthcheck#1117

Merged
xuwei-fit2cloud merged 2 commits into
mainfrom
pr@main_refactor_healthcheck
May 14, 2026
Merged

Pr@main refactor healthcheck#1117
xuwei-fit2cloud merged 2 commits into
mainfrom
pr@main_refactor_healthcheck

Conversation

@xuwei-fit2cloud
Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI review requested due to automatic review settings May 14, 2026 09:49
@xuwei-fit2cloud xuwei-fit2cloud merged commit 1f32e2c into main May 14, 2026
4 checks passed
@xuwei-fit2cloud xuwei-fit2cloud deleted the pr@main_refactor_healthcheck branch May 14, 2026 09:50
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

This PR introduces support for configuring an application “context path” via the installer configs and updates the Docker image healthcheck to probe the service under that context path.

Changes:

  • Add SQLBOT_CONTEXT_PATH to the installer’s install.conf and propagate it into the generated sqlbot.conf as CONTEXT_PATH.
  • Update Docker HEALTHCHECK to use Python urllib and include CONTEXT_PATH in the probe URL.

Reviewed changes

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

File Description
installer/sqlbot/templates/sqlbot.conf Exposes CONTEXT_PATH in the container env via installer templating.
installer/install.conf Adds a new installer-facing configuration variable SQLBOT_CONTEXT_PATH.
Dockerfile Modifies container healthcheck to probe a URL that incorporates the configured context path.

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

Comment thread Dockerfile
# Add health check
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
CMD curl -f http://localhost:8000 || exit 1
CMD python3 -c "import os, urllib.request; urllib.request.urlopen(f'http://localhost:8000/{os.environ.get(\"CONTEXT_PATH\", \"\")}', timeout=3)" || exit 1
Comment thread installer/install.conf
SQLBOT_SERVER_IMAGE_HOST=http://YOUR_SERVER_IP:MCP_PORT/images/
##Token过期时间: 60 minutes * 24 hours * 8 days = 11520 minutes
SQLBOT_ACCESS_TOKEN_EXPIRE_MINUTES=11520
## 上下文路径
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