1
0
mirror of https://github.com/openshift/source-to-image.git synced 2026-02-05 12:44:54 +01:00

Revert "Merge pull request #821 from bparees/crio"

This reverts commit 9a1bd4dcd1, reversing
changes made to 4957706835.
This commit is contained in:
Adam Kaplan
2018-06-01 10:56:36 -04:00
parent 8c296b0354
commit cb4af491e4
3 changed files with 0 additions and 9 deletions

View File

@@ -234,9 +234,6 @@ type Config struct {
// SourceInfo provides the info about the source to be built rather than relying
// on the Downloader to retrieve it.
SourceInfo *git.SourceInfo
// SecurityOpt are passed as options to the docker containers launched by s2i.
SecurityOpt []string
}
// EnvironmentSpec specifies a single environment variable.

View File

@@ -537,8 +537,6 @@ func (builder *STI) Save(config *api.Config) (err error) {
NetworkMode: string(config.DockerNetworkMode),
CGroupLimits: config.CGroupLimits,
CapDrop: config.DropCapabilities,
Binds: config.BuildVolumes,
SecurityOpt: config.SecurityOpt,
}
dockerpkg.StreamContainerIO(errReader, nil, func(s string) { glog.Info(s) })
@@ -596,7 +594,6 @@ func (builder *STI) Execute(command string, user string, config *api.Config) err
CGroupLimits: config.CGroupLimits,
CapDrop: config.DropCapabilities,
Binds: config.BuildVolumes,
SecurityOpt: config.SecurityOpt,
}
// If there are injections specified, override the original assemble script

View File

@@ -220,8 +220,6 @@ type RunContainerOptions struct {
// 2) it only gets applied when Command equals to "assemble" or "usage" script
// AND script is inside of the tar archive.
CommandExplicit []string
// SecurityOpt is passed through as security options to the underlying container.
SecurityOpt []string
}
// asDockerConfig converts a RunContainerOptions into a Config understood by the
@@ -246,7 +244,6 @@ func (rco RunContainerOptions) asDockerHostConfig() dockercontainer.HostConfig {
PublishAllPorts: rco.TargetImage,
NetworkMode: dockercontainer.NetworkMode(rco.NetworkMode),
Binds: rco.Binds,
SecurityOpt: rco.SecurityOpt,
}
if rco.CGroupLimits != nil {
hostConfig.Resources.Memory = rco.CGroupLimits.MemoryLimitBytes