Pulling a private docker image for environment setup

Hello, I have set up .cursor/environment.json as described here in the docs, but the base Docker image that we want to pull is our company’s private dev environment image.

Cursor would need to docker login or similar before trying to run the build step. We can provide a GITHUB_TOKEN or a Google Cloud token as env variables to authenticate to the corresponding artifact registries and pull the image, but the env setup procedure needs to pick it up.

Or are we missing a different way to do this?

Hey @Enrico_Guiraud!

Unfortunately, it’s not possible to inject secrets into the cloud agent environment setup today – so there’s no way to authenticate to a private registry before the image pull/build step. It is something we’re very actively working on, though!

@Enrico_Guiraud

This should be possible now! Can you give it a try? You can now mark a secret as “Build Only”.

Docs available here!