I have been trying to set up the Cloud Agent via Dockerfile, following the instructions in: Cloud Agents | Cursor Docs .
I’m having trouble configuring the start and install commands. When I set the install command, the Agent never starts. And the start command doesn’t do anything.
For instance, I’m setting up a Rails environment. I wanted to set the install command to run bundle install, and the start command should start redis and postgres, so that the agent can easily run the application’s tests.
Does anyone have experience with this and could point out to me what I am doing wrong? I found the documentation very lacking in examples.
Here’s my environment.json setup:
{
"name": "Rails Agent v8",
"install": "bundle install", // For some reason when this is here, the agent won't start, if not here it starts, but then the agent will need to run before doing anything
"start": "sudo service postgresql start && sudo service redis-server start", // This have no effect, the agent still have to start manually
"build": {
"context": ".",
"dockerfile": "Dockerfile"
}
}
hi - we’ve now exposed the docker build logs (and other information about the environment setup) in web and IDE. You should be able to see directly if the docker build has an error, and add logging to your install command to see if there are any issues there.
Separately, if you’re open to the Snapshot-based approach instead of Dockerfile, we are trialing a new setup workflow where the Cursor agent will configure the environment for you, which should be a lot smoother. If you’re interested in early access, just let me know