-
Notifications
You must be signed in to change notification settings - Fork 373
chore: add Cursor Cloud Agents environment configuration #1671
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
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
0e1597f
chore: add Cursor Cloud Agents environment configuration
cursoragent e094258
docs: add CHANGELOG entry for PR #1671
cursoragent 10e9033
fix: move Docker container operations to start phase
cursoragent 9188a57
chore: simplify environment setup PR per feedback
cursoragent 8c00314
chore: remove personal names from merge policy
cursoragent b86ee3c
chore: revert AGENTS.md to origin/main
cursoragent 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,5 @@ | ||
| { | ||
| "install": "#!/bin/bash\nset -e\n\n# Install Docker (needed for runtime, not for build)\nif ! command -v docker &> /dev/null; then\n curl -fsSL https://get.docker.com | sudo sh\n sudo usermod -aG docker ubuntu\nfi\n\n# Initialize git submodules\ngit submodule update --init --recursive\n\n# Enable corepack for Yarn\ncorepack enable\n\n# Build Zoekt binaries\nmkdir -p bin\ngo build -C vendor/zoekt -o $(pwd)/bin ./cmd/...\n\n# Install dependencies and build shared packages\nyarn install\nyarn build:deps\n\n# Create minimal config.json with public repos for E2E testing\ncat > config.json << 'CONFIGEOF'\n{\n \"$schema\": \"https://raw.githubusercontent.com/sourcebot-dev/sourcebot/main/schemas/v3/index.json\",\n \"connections\": {\n \"github-public\": {\n \"type\": \"github\",\n \"repos\": [\"sourcebot-dev/sourcebot\"]\n }\n }\n}\nCONFIGEOF\n\necho \"[env-setup] Install completed successfully\"", | ||
| "start": "#!/bin/bash\nset -e\n\n# Start Docker daemon\nif ! docker info &> /dev/null 2>&1; then\n sudo dockerd > /tmp/dockerd.log 2>&1 &\n sleep 3\n sudo chmod 666 /var/run/docker.sock || true\n # Wait for Docker to be ready\n for i in {1..30}; do\n if docker info &> /dev/null 2>&1; then\n echo \"[start] Docker daemon ready\"\n break\n fi\n sleep 1\n done\nfi\n\n# Start PostgreSQL and Redis containers\ncd /workspace\ndocker compose -f docker-compose-dev.yml up -d\nsleep 5\n\n# Run database migrations\nyarn dev:prisma:migrate:dev\n\n# Start development server\nyarn dev &\n\n# Wait for port 3000 to be ready\necho \"[start] Waiting for http://localhost:3000...\"\nfor i in {1..90}; do\n if curl -s -o /dev/null -w '%{http_code}' http://localhost:3000/ 2>/dev/null | grep -qE '^(200|307)$'; then\n echo \"[start] Server ready on port 3000\"\n break\n fi\n sleep 2\ndone\n\n# Keep container alive\nwait", | ||
|
msukkari marked this conversation as resolved.
msukkari marked this conversation as resolved.
msukkari marked this conversation as resolved.
msukkari marked this conversation as resolved.
msukkari marked this conversation as resolved.
|
||
| "ports": [{"name": "web", "port": 3000}] | ||
| } | ||
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.