forked from strata-org/Strata
-
Notifications
You must be signed in to change notification settings - Fork 0
Add devcontainer configuration #33
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
keyboardDrummer-bot
wants to merge
2
commits into
main
Choose a base branch
from
add-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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| { | ||
| "mcpServers": { | ||
| "github": { | ||
| "command": "npx", | ||
| "args": [ | ||
| "-y", | ||
| "@modelcontextprotocol/server-github" | ||
| ] | ||
| } | ||
| } | ||
| } |
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 @@ | ||
| FROM ubuntu:24.04 | ||
|
|
||
| ARG DEBIAN_FRONTEND=noninteractive | ||
|
|
||
| # Install base dependencies | ||
| RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
| curl wget git ca-certificates unzip python3 python3-pip pipx \ | ||
| && rm -rf /var/lib/apt/lists/* | ||
|
|
||
| # Install Node.js (needed for Claude Code and Kiro CLI) | ||
| RUN curl -fsSL https://deb.nodesource.com/setup_22.x | bash - \ | ||
| && apt-get install -y nodejs \ | ||
| && rm -rf /var/lib/apt/lists/* | ||
|
|
||
| # Install elan (Lean version manager) and the toolchain specified in lean-toolchain | ||
| RUN curl -sSf https://raw.githubusercontent.com/leanprover/elan/master/elan-init.sh | bash -s -- -y --default-toolchain none | ||
| ENV PATH="/root/.elan/bin:${PATH}" | ||
|
|
||
| # Install cvc5 (required by Strata tests) | ||
| RUN ARCH=$(uname -m) \ | ||
| && if [ "$ARCH" = "x86_64" ]; then ARCH_NAME="x86_64"; \ | ||
| elif [ "$ARCH" = "aarch64" ] || [ "$ARCH" = "arm64" ]; then ARCH_NAME="arm64"; \ | ||
| else echo "Unsupported architecture: $ARCH" && exit 1; fi \ | ||
| && wget -q https://github.com/cvc5/cvc5/releases/download/cvc5-1.2.1/cvc5-Linux-${ARCH_NAME}-static.zip \ | ||
| && unzip -q cvc5-Linux-${ARCH_NAME}-static.zip \ | ||
| && mv cvc5-Linux-${ARCH_NAME}-static/bin/cvc5 /usr/local/bin/ \ | ||
| && rm -rf cvc5-Linux-${ARCH_NAME}-static* | ||
|
|
||
| # Install z3 (required by Strata tests) | ||
| RUN ARCH=$(uname -m) \ | ||
| && if [ "$ARCH" = "x86_64" ]; then \ | ||
| wget -q https://github.com/Z3Prover/z3/releases/download/z3-4.15.2/z3-4.15.2-x64-glibc-2.39.zip \ | ||
| && unzip -q z3-4.15.2-x64-glibc-2.39.zip \ | ||
| && mv z3-4.15.2-x64-glibc-2.39/bin/z3 /usr/local/bin/ \ | ||
| && rm -rf z3-4.15.2-x64-glibc-2.39*; \ | ||
| elif [ "$ARCH" = "aarch64" ] || [ "$ARCH" = "arm64" ]; then \ | ||
| wget -q https://github.com/Z3Prover/z3/releases/download/z3-4.15.2/z3-4.15.2-arm64-glibc-2.34.zip \ | ||
| && unzip -q z3-4.15.2-arm64-glibc-2.34.zip \ | ||
| && mv z3-4.15.2-arm64-glibc-2.34/bin/z3 /usr/local/bin/ \ | ||
| && rm -rf z3-4.15.2-arm64-glibc-2.34*; \ | ||
| else echo "Unsupported architecture: $ARCH" && exit 1; fi | ||
|
|
||
| # Install Claude Code CLI | ||
| RUN npm install -g @anthropic-ai/claude-code | ||
|
|
||
| # Install Kiro CLI | ||
| RUN npm install -g kiro | ||
|
|
||
| # Install uv (needed for lean-lsp-mcp via uvx) | ||
| RUN pipx install uv | ||
| ENV PATH="/root/.local/bin:${PATH}" | ||
|
|
||
| WORKDIR /workspaces/Strata |
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,17 @@ | ||
| { | ||
| "name": "Strata", | ||
| "build": { | ||
| "dockerfile": "Dockerfile" | ||
| }, | ||
| "features": { | ||
| "ghcr.io/devcontainers/features/github-cli:1": {} | ||
| }, | ||
| "postCreateCommand": ".devcontainer/postCreate.sh", | ||
| "customizations": { | ||
| "vscode": { | ||
| "extensions": [ | ||
| "leanprover.lean4" | ||
| ] | ||
| } | ||
| } | ||
| } |
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,9 @@ | ||
| #!/bin/bash | ||
| set -euo pipefail | ||
|
|
||
| # Install the Lean toolchain specified in lean-toolchain | ||
| elan install "$(cat lean-toolchain)" | ||
|
|
||
| # Build and test to populate the Lake cache | ||
| lake build | ||
| lake test -- --exclude Languages.Python |
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.
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.
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.
Could you use the
github-mcp-serverCLI ?