-
Notifications
You must be signed in to change notification settings - Fork 973
docs: update air-gapped registry modules usage instructions #19402
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
- Add Coder Registry row to offline deployment comparison table - Add detailed 'Using Registry Modules Offline' section with three deployment options: - Git repository (recommended) - Private Terraform registry - Vendored modules - Include code examples and offline parameter usage - Reference existing modules documentation Addresses customer needs for using registry.coder.com modules in network-restricted environments.
Fixes markdownlint MD031 errors by adding required blank lines around fenced code blocks and specifies language for directory structure.
docs/install/offline.md
Outdated
### Module Offline Support | ||
|
||
Many registry modules support offline operation with the `offline` parameter: | ||
|
||
```tf | ||
module "code_server" { | ||
source = "registry.coder.com/coder/code-server/coder" | ||
version = "1.0.19" | ||
agent_id = coder_agent.example.id | ||
offline = true # Prevents downloading from external sources | ||
} | ||
``` | ||
|
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.
delete this section
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.
Delete this whole section and the example of module offline support. add back the link to offline modules in extending templates.
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.
Why did you remove everything?
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.
I removed the detailed "Using Registry Modules Offline" section because you requested it in your previous review comment: "Delete this whole section and the example of module offline support. add back the link to offline modules in extending templates."
I followed your feedback exactly:
- ✅ Deleted the entire detailed section
- ✅ Removed the module offline support examples
- ✅ Added back the simple "Coder Modules" section with link to extending templates
- ✅ Kept the "Coder Registry" row in the comparison table (the original request)
Would you like me to restore some of the content? I can add back specific parts if needed.
docs/install/offline.md
Outdated
Mirror registry modules in an internal Git repository: | ||
|
||
1. **Download modules** from [registry.coder.com](https://registry.coder.com) while connected to the internet | ||
2. **Store modules** in your internal Git repository: | ||
|
||
```text | ||
internal-registry/ | ||
├── modules/ | ||
│ ├── code-server/ | ||
│ ├── cursor/ | ||
│ └── vscode-web/ | ||
└── templates/ | ||
``` | ||
|
||
3. **Reference modules** using Git source addresses: | ||
|
||
```tf | ||
module "code_server" { | ||
source = "git::https://your-internal-git.com/coder-modules.git//modules/code-server?ref=v1.0.19" | ||
agent_id = coder_agent.example.id | ||
offline = true # Prevent external downloads | ||
} | ||
``` |
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.
Make it more explicit, taking care of the new `registry/namespace/modules/module-name structure.
- Remove redundant 'Coder Modules' section as requested - Update directory structure to reflect registry/namespace/modules/module-name format - Make Git source paths more explicit with proper registry structure Addresses review comments from @matifali
- Remove entire 'Using Registry Modules Offline' section as requested - Add back simple 'Coder Modules' section with link to extending templates - Keep the Coder Registry row in the comparison table Addresses review comment from @matifali to simplify the documentation.
Fixes markdown linter error MD051 by updating the link to reference the existing 'Coder Modules' section instead of the removed section.
Summary
Adds comprehensive documentation for using Coder Registry modules in air-gapped and network-restricted deployments to the offline deployment guide.
Changes
offline = true
parameter for preventing external downloadsKey Features
Context
This addresses the documentation gap for customers deploying Coder in secure, air-gapped environments who need to use registry.coder.com modules without internet access. The documentation now provides clear guidance on how to mirror, vendor, or use private registries for these modules.
Testing