Skip to main content

Setup Development Environment

We use Cursor with the Anysphere Containers extension. This lets you use a Docker container as a full-featured development environment. A devcontainer.json file in Core tells Cursor how to access (or create) a development container with a well-defined tool and runtime stack.

To get started try the following:

  1. Install Cursor
  2. Install Docker Desktop
  3. Start Docker Desktop
    • PC users: Windows limits resources to WSL 2 (Memory/CPU), this limit can be configured in your .wslconfig file.
  4. Start Cursor and add Anysphere Containers Extension
  5. Run Git: Clone from the Command Palette (Cmd/Ctrl + Shift + P)
  6. Choose GitHub (You'll need to authenticate with GitHub), then enter JesusFilm/core
  7. Select an appropriate local directory to clone the repository to.
  8. If prompted by Cursor, press "Open" or "Open Repository"
  9. Cursor will start building the dev container. A progress notification provides status updates.
  10. After the build completes, Cursor will automatically connect to the container. You can now work with the repository source code in this independent environment as you would if you had cloned the code locally.

Common Issues

Container is running slowly or crashing on Mac

  1. Open Docker Desktop
  2. Go to Settings -> Resources -> Advanced
  3. Set CPUs: 7, Memory: 12.00GB, Swap: 4GB
  4. Click 'Apply & Restart'

"Docker not found" or "Docker daemon not started" when starting Cursor after updating docker

  1. Open Docker Desktop
  2. Go to Settings -> Advanced and ensure the following settings are selected:
  • System (requires password)
  • Allow the default Docker socket to be used (requires password)
  • Allow privileged port mapping (requires password)
  • Automatically check configuration

Git: Clone does not appear in the command palette

  • Simply restart Cursor and try again