Beispiel #1
0
// RunDockerBuild creates a docker builder and runs its build
func RunDockerBuild() {
	run(func(client bld.DockerClient, sock string, auth docker.AuthConfiguration, present bool, build *api.Build) builder {
		return bld.NewDockerBuilder(client, auth, present, build)
	}, []scmauth.SCMAuth{&scmauth.SSHPrivateKey{}})
}
Beispiel #2
0
// RunDockerBuild creates a docker builder and runs its build
func RunDockerBuild() {
	run(func(client bld.DockerClient, sock string, build *api.Build) builder {
		return bld.NewDockerBuilder(client, build)
	}, []scmauth.SCMAuth{&scmauth.SSHPrivateKey{}})
}
Beispiel #3
0
// Build starts a Docker build.
func (dockerBuilder) Build(dockerClient bld.DockerClient, sock string, buildsClient client.BuildInterface, build *api.Build, gitClient bld.GitClient) error {
	return bld.NewDockerBuilder(dockerClient, buildsClient, build, gitClient).Build()
}
Beispiel #4
0
// RunDockerBuild creates a docker builder and runs its build
func RunDockerBuild() {
	run(func(client bld.DockerClient, sock string, build *api.Build) builder {
		return bld.NewDockerBuilder(client, build)
	})
}
Beispiel #5
0
// Build starts a Docker build.
func (dockerBuilder) Build(dockerClient bld.DockerClient, sock string, buildsClient client.BuildInterface, build *api.Build, gitClient bld.GitClient, cgLimits *s2iapi.CGroupLimits) error {
	return bld.NewDockerBuilder(dockerClient, buildsClient, build, gitClient, cgLimits).Build()
}