Repository navigation
[RUN-5039] Support docker --env-file; bake release version into image User-Agent #105
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
Open
smartinellibenedetti
wants to merge
5
commits into
main
Choose a base branch
from
env-file-support
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
3c109b3
Support docker --env-file; bake release version into image User-Agent
smartinellibenedetti 3785f05
Docs: Runlayer uses --env-file from ~/.rundeck-mcp/.env
smartinellibenedetti 8a15ca4
Address PR review: normalize entrypoint branch, validate trimmed regi…
smartinellibenedetti a2211f2
Entrypoint: apply cleanEnvValue semantics to RUNDECK_DOCS_BRANCH and …
smartinellibenedetti 942cca6
Docs: entrypoint also normalizes RUNDECK_DOCS_PATH
smartinellibenedetti File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,8 +1,28 @@ | ||
| # Rundeck instance base URL (no trailing slash) | ||
| # Save your copy as ~/.rundeck-mcp/.env (chmod 600) — outside any project, next to instances.json. | ||
| # | ||
| # Example env file for the Rundeck MCP server. | ||
| # | ||
| # Works for all of these: | ||
| # docker run -i --rm --env-file ~/.rundeck-mcp/.env rundeck/mcp:latest | ||
| # Runlayer (PagerDuty internal): reads this file from ~/.rundeck-mcp/.env, no flag needed | ||
| # `docker compose` / shell `set -a; . ./.env; set +a` | ||
| # | ||
| # Format rules (`docker run --env-file` is stricter than dotenv): | ||
| # - One KEY=VALUE per line, comments on their own line (a trailing "# ..." becomes part of the value). | ||
| # - No `export ` prefix. | ||
| # - Quotes are not needed. The server strips one surrounding pair, but Docker itself keeps them. | ||
| # - Keep every value on a single line (RUNDECK_INSTANCES included). | ||
| # - Never commit the real file: .env and .env.* are gitignored and excluded from the Docker build context. | ||
|
|
||
| # Rundeck instance base URL (a trailing slash is stripped) | ||
| RUNDECK_URL=https://your-rundeck-instance.example.com | ||
|
|
||
| # API token — Rundeck → User Profile → API Tokens | ||
| RUNDECK_TOKEN=your-api-token-here | ||
|
|
||
| # API version (default is fine for most installations) | ||
| RUNDECK_API_VERSION=59 | ||
|
|
||
| # Optional: switch between several instances mid-session (replaces RUNDECK_URL/RUNDECK_TOKEN). | ||
| # Single-line JSON wrapped in single quotes (keeps it valid when the file is sourced by a shell; the server strips them). Uncomment to use. | ||
| # RUNDECK_INSTANCES='{"default":"prod","instances":{"prod":{"url":"https://rundeck-prod.example.com","token":"prod-token"},"staging":{"url":"https://rundeck-staging.example.com","token":"staging-token"}}}' |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,8 @@ | ||
| node_modules/ | ||
| dist/ | ||
| .env | ||
| .env.* | ||
| !.env.example | ||
| .mcp.json | ||
| docs/ | ||
| .idea/ | ||
|
|
||
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
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
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.