Git mirrors and docker

Hi BK team, I would love to get your feedback and advice on using the agent’s git mirror experimental feature with pipelines that use docker(-compose).

Inside the container, we are unable to do any git operations since the project’s clone is a reference one that points to the mirror clone. The mirror clone is in a path that isn’t accessible.

We could mount the mirror path but this seems a little weird. Especially because the path has to be derived somehow during the step. Side note: it would be cool if BK set an environment variable for the mirror repo so there’s a stable API.

Would like to hear how you or other folks are handling this?

Here’s an idea for adding this to the agent and the docker / docker-compose plugins:

Thanks for the quick turnaround @pda – looking forward to seeing this land.