in executors/docker/docker_command.go [364:418]
func init() {
options := executors.ExecutorOptions{
DefaultCustomBuildsDirEnabled: true,
DefaultSafeDirectoryCheckout: true,
DefaultBuildsDir: "/builds",
DefaultCacheDir: "/cache",
SharedBuildsDir: false,
Shell: common.ShellScriptInfo{
Shell: "bash",
Type: common.NormalShell,
RunnerCommand: "/usr/bin/gitlab-runner-helper",
},
ShowHostname: true,
}
creator := func() common.Executor {
e := &commandExecutor{
executor: executor{
AbstractExecutor: executors.AbstractExecutor{
ExecutorOptions: options,
},
},
}
e.SetCurrentStage(common.ExecutorStageCreated)
return e
}
featuresUpdater := func(features *common.FeaturesInfo) {
features.Variables = true
features.Image = true
features.Services = true
features.Session = true
features.Terminal = true
features.ServiceVariables = true
features.ServiceMultipleAliases = true
features.ImageExecutorOpts = true
features.ServiceExecutorOpts = true
features.NativeStepsIntegration = true
}
common.RegisterExecutorProvider("docker", executors.DefaultExecutorProvider{
Creator: creator,
FeaturesUpdater: featuresUpdater,
ConfigUpdater: configUpdater,
DefaultShellName: options.Shell.Shell,
})
common.RegisterExecutorProvider("docker-windows", executors.DefaultExecutorProvider{
Creator: creator,
FeaturesUpdater: featuresUpdater,
ConfigUpdater: configUpdater,
DefaultShellName: options.Shell.Shell,
})
}