Native Execution
Native Execution is an image that runs Batch Changes without
requiring src-cli
to be installed on the Executor machine.
Native Execution is required when running Batch Changes in Kubernetes. No docker-in-docker or privileged containers are required.
This is also useful for environments where it is difficult to install src-cli
on the Executor machine, e.g. air-gap
environments.
Enable
Native Execution is configured using a feature flag. To enable it,
- Go to Site admin
- Under Configuration select Feature flags
- Select Create feature flag
- Enter
native-ssbc-execution
as the Name - Select
Boolean
as the Type - Set the Value to
True
Docker Image
The Native Execution Docker image is available on Docker Hub
at sourcegraph/batcheshelper
.
The default image (sourcegraph/batcheshelper:${VERSION}
) can be overridden by updating the following in the Site configuration
executors.batcheshelperImage
executors.batcheshelperImageTag
Requirements
The Docker Images that execute the actual Batch Change step require tee
to be available on the image. Without tee
,
the output of the step cannot be captured properly for template variable rendering.