There was an error while loading. Please reload this page.
1 parent 2c8693d commit dfc95bfCopy full SHA for dfc95bf
1 file changed
configuration/builders/infra/runtime.py
@@ -106,17 +106,16 @@ def __init__(
106
docker_environment: DockerConfig,
107
container_commit: bool = False,
108
) -> ShellStep:
109
- super().__init__(name=step.name)
110
- assert isinstance(
111
- step, ShellStep
+
+ self.step = copy.deepcopy(step)
+ super().__init__(name=self.step.name, options=self.step.options
112
), "InContainer wrapper only works with ShellStep or its subclasses"
113
- self.step = step
114
self.container_commit = container_commit
115
self.docker_environment = docker_environment
116
self.workdir = step.command.workdir
117
118
def generate(self) -> IBuildStep:
119
- step = copy.deepcopy(self.step)
+ step = self.step
120
cmd_prefix = []
121
cmd_prefix.append(
122
[
0 commit comments