feat: add public one-line remote installer for DeepSQL - #118
Merged
Merged
Conversation
Add scripts/self-host/remote-install.sh for OpenCode-style one-liner install: curl -fsSL https://raw.githubusercontent.com/.../remote-install.sh | bash Features: - Detects OS/arch (Linux, macOS, x86_64, arm64) - Checks for bash, curl, git prerequisites - Validates Docker Engine, Compose v2, and buildx (with version checks) - Guides to bootstrap-server.sh if Docker is missing on Linux - Clones to ${DEEPSQL_HOME:-$HOME/deepsql} at latest v* release tag - Falls back to main branch if no release tags exist - Copies .env.example to .env if needed - Prints clear LLM configuration instructions (DEEPSQL_CHAT_*) - Supports --yes for noninteractive install, --branch for specific versions - Security: only fetches from GitHub raw/API for DeepSQLAI org Also updates README Quick start with the one-liner + link to script. Co-authored-by: Venkat SF <venkatesh.sakamuri@stayflexi.com>
- Separate info output from return value in get_latest_release_tag - Add report_version helper that prefers the requested target ref for version tags (v*), since shallow clones may not have accurate git describe output Co-authored-by: Venkat SF <venkatesh.sakamuri@stayflexi.com>
- Change check_docker() Linux guidance to use raw.githubusercontent.com URLs instead of local paths that don't exist before clone_or_update - Add re-run hint after bootstrap/Docker install - Harden get_latest_release_tag() to explicitly: - Match only ^v[0-9] product tags (v1.3.0, etc.) - Exclude desktop-v* and other prefixed tags - Both buildx missing and Docker missing messages now use remote URLs Co-authored-by: Venkat SF <venkatesh.sakamuri@stayflexi.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a
remote-install.shscript for one-liner DeepSQL self-host installation:curl -fsSL https://raw.githubusercontent.com/DeepSQLAI/deepsql/main/scripts/self-host/remote-install.sh | bashFeatures
main--depth 1for fast cloning.envfrom template--yesflag for noninteractive moderaw.githubusercontent.comURLsOptions
-y, --yesinstall.shautomatically after setup--skip-docker-check--branch <ref>Environment Variables
DEEPSQL_HOME$HOME/deepsqlDEEPSQL_BRANCHSecurity
raw.githubusercontent.com,github.com,api.github.com)Follow-up Fix (latest commit)
check_docker()previously printedsudo ./scripts/self-host/bootstrap-server.shwhen Docker was missing on Linux, but that path doesn't exist until afterclone_or_updaterunscurl -fsSL https://raw.githubusercontent.com/.../bootstrap-server.sh | sudo bashget_latest_release_tag()now explicitly:^v[0-9]product tags (e.g.,v1.3.0)desktop-v*and other prefixed tags