background-agents icon indicating copy to clipboard operation
background-agents copied to clipboard

Full stack local development setup

Open sidpalas opened this issue 7 months ago • 4 comments

I was wondering how people are running open-inspect when developing against components other than web (I see instructions on how to run just the web client locally).

I prototyped what this might look like here, running web and control-plane via docker-compose + I implemented a little docker provider which spawns containers as sandboxes (so the only external dependency is the GitHub app)

If there is interest in maturing this to get it merged upstream OR if you have other thoughts on improving the local full-stack dev experience, let me know!

sidpalas avatar Apr 15 '26 15:04 sidpalas

Also, Docker certainly isn't necessary here... I was just planning to create a Docker sandbox provider to validate anyways, so I put everything into a compose setup

sidpalas avatar Apr 18 '26 20:04 sidpalas

@sidpalas i'm not totally sold (yet) on the whole docker compose experience, but i think the docker sandbox provider within the change would be a good contribution and could be separated out.

as far as local dev, i mostly run via npm wrangler dev

ColeMurray avatar Apr 26 '26 00:04 ColeMurray

Yeah, I don't think the docker compose setup for first party services is necessary. It would be nice to get the a process documented for running the control plane locally. E.g.:

https://github.com/sidpalas/background-agents/pull/4

I can separate out the docker sandbox provider into its own PR

sidpalas avatar Apr 28 '26 01:04 sidpalas

Closing: local development is now documented in two ways. docker-compose.yml with docs/CONTROL_PLANE_CONTAINER.md (#1772) runs the control plane locally, and npm run preview (#2024, docs/verification/authenticated-preview.md) runs web and control plane together without OAuth or production credentials. A Docker sandbox provider would still be welcome as a separate PR.

open-inspect avatar Oct 31 '26 17:10 open-inspect