Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle local builds in our Dapper infrastructure
This is based on <submariner-io/submariner#1607> but adapted so that it can be shared across all projects. When LOCAL_BUILD is defined, assume that Shipyard is available in ../shipyard (relative to the top directory of the current project), and instead of running Dapper, run Dapper-hosted commands directly. This relies on DAPPER_ARGS for Dapper arguments throughout, instead of specifying Dapper arguments in the Dapper invocation itself; that way, local builds can ignore DAPPER_ARGS entirely. This produces the expected behaviour when choosing a base image: the command to run inside the chosen base image is run directly. It changes "make shell" however, but in a sensible way; Make determines that there is nothing to do and returns to whatever called it, typically a shell in the right environment. Signed-off-by: Stephen Kitt <[email protected]>
- Loading branch information