- Notifications
You must be signed in to change notification settings - Fork 2
Add custom package registries documentation #327
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this 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 adds comprehensive documentation for the custom package registries feature in ToolHive, allowing enterprise users to configure environment variables for private package registries and mirrors. The documentation explains how to set, view, and remove build environment variables that are injected into Dockerfiles during protocol scheme builds.
- Documents three new CLI commands:
thv config set-build-env,get-build-env, andunset-build-env - Provides a reference table of common environment variables for npm, Go, and pip/uv package managers
- Adds troubleshooting guidance for custom registry configuration issues
| #### View configured variables | ||
| | ||
| To see all configured build environment variables: | ||
| | ||
| ```bash | ||
| thv config get-build-env | ||
| ``` | ||
| | ||
| To view a specific variable: | ||
| | ||
| ```bash | ||
| thv config get-build-env NPM_CONFIG_REGISTRY | ||
| ``` | ||
| | ||
| #### Remove build environment variables | ||
| | ||
| To remove a specific variable: | ||
| | ||
| ```bash | ||
| thv config unset-build-env NPM_CONFIG_REGISTRY | ||
| ``` | ||
| | ||
| To remove all configured build environment variables: | ||
| | ||
| ```bash | ||
| thv config unset-build-env --all | ||
| ``` | ||
| |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: This probably isn't needed in this section.
8ac5613 to abf1ca5 Compare Document the build environment configuration feature for custom package registries (toolhive#2742). This allows enterprise environments to configure environment variables like NPM_CONFIG_REGISTRY, GOPROXY, and PIP_INDEX_URL that are injected into Dockerfiles during protocol scheme builds. Adds: - New "Custom package registries" section in build-containers guide - CLI commands: set-build-env, get-build-env, unset-build-env - Table of common environment variables for npm, Go, and pip/uv - Troubleshooting section for custom registry issues 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
abf1ca5 to 3d1b9b9 Compare Document the build environment configuration feature for custom package registries (toolhive#2742). This allows enterprise environments to configure environment variables like NPM_CONFIG_REGISTRY, GOPROXY, and PIP_INDEX_URL that are injected into Dockerfiles during protocol scheme builds. Adds: - New "Custom package registries" section in build-containers guide - CLI commands: set-build-env, get-build-env, unset-build-env - Table of common environment variables for npm, Go, and pip/uv - Troubleshooting section for custom registry issues 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude <noreply@anthropic.com>
Summary
thv config set-build-env,get-build-env,unset-build-envThis allows enterprise environments to configure environment variables like
NPM_CONFIG_REGISTRY,GOPROXY, andPIP_INDEX_URLthat are injected into Dockerfiles during protocol scheme builds.Test plan
npm run buildpassesnpm run prettierpasses🤖 Generated with Claude Code