-
Notifications
You must be signed in to change notification settings - Fork 0
✨ feat(devcontainer): add multi-environment configs for VS Code, Codespaces, and JetBrains #721
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
Draft
codekiln
wants to merge
6
commits into
main
Choose a base branch
from
i718-multi-env-devcontainer
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.
Draft
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
b36d98a
✨ feat(devcontainer): add multi-environment configs for VS Code, Code…
codekiln e7b48e1
🔧 build: trigger CI re-run after API key regeneration
codekiln 7664ec7
📚 docs: add manual testing checklist for issue #718
codekiln 2f9204b
♻️ refactor: rename test checklist to follow docs/implementation nami…
codekiln c43a3b2
🐛 fix(codespaces): correct volume mount to repository root (#722)
Copilot 5545f1f
✅ docs: manual checklist edits for PR #721, prepping for rebase
codekiln 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,53 @@ | ||
| { | ||
| "name": "langstar-codespaces", | ||
| // Use Docker Compose for container configuration | ||
| "dockerComposeFile": "docker-compose.yml", | ||
| "service": "langstar-dev", | ||
| "workspaceFolder": "/workspace", | ||
|
|
||
| // Dev Container features (installed by VS Code, not Docker Compose) | ||
| "features": { | ||
| "ghcr.io/devcontainers/features/github-cli:1": {}, | ||
| "ghcr.io/devcontainers-extra/features/mise:1": {}, | ||
| "ghcr.io/devcontainers-extra/features/uv:1": {}, | ||
| "ghcr.io/devcontainers/features/rust:1": {}, | ||
| "ghcr.io/codekiln/langstar/langstar:1": { | ||
| "version": "2.1.2" | ||
| } | ||
| }, | ||
|
|
||
| // VS Code customizations | ||
| "customizations": { | ||
| "vscode": { | ||
| "extensions": [ | ||
| "anthropic.claude-code", | ||
| // container tools for docker | ||
| "ms-azuretools.vscode-containers", | ||
| "ms-azuretools.vscode-docker", | ||
| // python language support | ||
| "ms-python.python" | ||
| ], | ||
| "settings": { | ||
| "files.autoSave": "afterDelay", | ||
| "editor.formatOnSave": true, | ||
| "terminal.integrated.defaultProfile.linux": "zsh", | ||
| "terminal.integrated.profiles.linux": { | ||
| "bash": { | ||
| "path": "bash", | ||
| "icon": "terminal-bash" | ||
| }, | ||
| "zsh": { | ||
| "path": "zsh" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| }, | ||
|
|
||
| "remoteUser": "node", | ||
|
|
||
| // Lifecycle commands | ||
| // Note: Scripts are in parent directory, referenced via /workspace path | ||
| "postCreateCommand": "bash /workspace/.devcontainer/post-create.sh", | ||
| "postStartCommand": "bash /workspace/.devcontainer/setup-github-auth.sh" | ||
| } | ||
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 |
|---|---|---|
| @@ -0,0 +1,103 @@ | ||
| # Docker Compose configuration for GitHub Codespaces | ||
| # Compose file format: https://docs.docker.com/compose/compose-file/ | ||
| # | ||
| # IMPORTANT: This configuration is specifically designed for GitHub Codespaces. | ||
| # It does NOT depend on .env files (which are gitignored and don't exist in Codespaces). | ||
| # All environment variables come from GitHub Codespaces secrets. | ||
| # | ||
| # For local VS Code development, use the default config at ../.devcontainer/ | ||
| # For JetBrains Gateway, use .devcontainer/jetbrains/ | ||
|
|
||
| services: | ||
| langstar-dev: | ||
| build: | ||
| context: .. | ||
| dockerfile: Dockerfile | ||
| # Build arguments with defaults (Codespaces secrets can override) | ||
| # https://docs.docker.com/compose/compose-file/build/#args | ||
| args: | ||
| TZ: ${TZ:-America/New_York} | ||
| CLAUDE_CODE_VERSION: ${CLAUDE_CODE_VERSION:-latest} | ||
| GIT_DELTA_VERSION: ${GIT_DELTA_VERSION:-0.18.2} | ||
| ZSH_IN_DOCKER_VERSION: ${ZSH_IN_DOCKER_VERSION:-1.2.1} | ||
|
|
||
| # Add Linux capabilities for VPN/network tools | ||
| # https://docs.docker.com/compose/compose-file/compose-file-v3/#cap_add | ||
| cap_add: | ||
| - NET_ADMIN | ||
| - NET_RAW | ||
|
|
||
| # Environment variables from GitHub Codespaces secrets | ||
| # https://docs.github.com/en/codespaces/managing-your-codespaces/managing-encrypted-secrets-for-your-codespaces | ||
| # | ||
| # IMPORTANT: NO fallback syntax (${VAR:-${OTHER}}) - Codespaces secrets only. | ||
| # The .env file does NOT exist in Codespaces (it's gitignored). | ||
| # All secrets must be configured in GitHub: Settings → Secrets → Codespaces | ||
| # | ||
| # Required Codespaces secrets: | ||
| # - GH_PAT: GitHub Personal Access Token | ||
| # - GH_USER: GitHub username | ||
| # - AWS_ACCESS_KEY_ID: AWS access key for Bedrock | ||
| # - AWS_SECRET_ACCESS_KEY: AWS secret key for Bedrock | ||
| # - LANGSMITH_API_KEY: LangSmith API key | ||
| environment: | ||
| # GitHub Authentication (from Codespaces secrets) | ||
| GITHUB_PAT: ${GH_PAT} | ||
| GITHUB_USER: ${GH_USER} | ||
| GITHUB_PROJECT_PAT: ${GH_PROJECT_PAT} | ||
|
|
||
| # Anthropic/AWS Configuration (from Codespaces secrets) | ||
| AWS_ACCESS_KEY_ID: ${AWS_ACCESS_KEY_ID} | ||
| AWS_SECRET_ACCESS_KEY: ${AWS_SECRET_ACCESS_KEY} | ||
| ANTHROPIC_MODEL: ${ANTHROPIC_MODEL:-us.anthropic.claude-sonnet-4-5-20250929-v1:0} | ||
| ANTHROPIC_SMALL_FAST_MODEL: ${ANTHROPIC_SMALL_FAST_MODEL:-us.anthropic.claude-haiku-4-5-20251001-v1:0} | ||
| AWS_REGION: ${AWS_REGION:-us-east-1} | ||
| CLAUDE_CODE_USE_BEDROCK: ${CLAUDE_CODE_USE_BEDROCK:-1} | ||
|
|
||
| # LangChain API Configuration (from Codespaces secrets) | ||
| LANGSMITH_API_KEY: ${LANGSMITH_API_KEY} | ||
| LANGSMITH_ORGANIZATION_NAME: ${LANGSMITH_ORGANIZATION_NAME} | ||
| LANGSMITH_ORGANIZATION_ID: ${LANGSMITH_ORGANIZATION_ID} | ||
| LANGSMITH_WORKSPACE_NAME: ${LANGSMITH_WORKSPACE_NAME} | ||
| LANGSMITH_WORKSPACE_ID: ${LANGSMITH_WORKSPACE_ID} | ||
|
|
||
| # Test LangGraph Deployment (optional) | ||
| TEST_GRAPH_ID: ${TEST_GRAPH_ID} | ||
| TEST_DEPLOYMENT_ID: ${TEST_DEPLOYMENT_ID} | ||
|
|
||
| # Container Environment (static values) | ||
| NODE_OPTIONS: --max-old-space-size=4096 | ||
| CLAUDE_CONFIG_DIR: /home/node/.claude | ||
| POWERLEVEL9K_DISABLE_GITSTATUS: "true" | ||
|
|
||
| # tmux skill configuration | ||
| CLAUDE_TMUX_SOCKET_DIR: /tmp/claude-tmux-sockets | ||
|
|
||
| # Claude Code Token Configuration | ||
| CLAUDE_CODE_MAX_OUTPUT_TOKENS: ${CLAUDE_CODE_MAX_OUTPUT_TOKENS:-4096} | ||
| MAX_THINKING_TOKENS: ${MAX_THINKING_TOKENS:-1024} | ||
|
|
||
| # Legacy variables (optional) | ||
| GITHUB_TOKEN: ${GITHUB_TOKEN} | ||
| OPENAI_API_KEY: ${OPENAI_API_KEY} | ||
|
|
||
| # Volume mounts | ||
| # https://docs.docker.com/compose/compose-file/compose-file-v3/#volumes | ||
| volumes: | ||
| # Bind mount workspace (Codespaces manages this in cloud) | ||
| - ../..:/workspace:cached | ||
|
|
||
| # Named volumes for persistent data across container rebuilds | ||
| - claude-code-bashhistory:/commandhistory | ||
| - claude-code-config:/home/node/.claude | ||
|
|
||
| # Keep container running (required for devcontainers) | ||
| command: sleep infinity | ||
|
|
||
| # Run container as 'node' user (matches Dockerfile USER directive) | ||
| user: node | ||
|
|
||
| # Named volumes declaration | ||
| volumes: | ||
| claude-code-bashhistory: | ||
| claude-code-config: |
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.