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"
}
}