MCPcopy Create free account
hub / github.com/Paper2Poster/Paper2Poster / add_task

Method add_task

camel/runtime/docker_runtime.py:122–136  ·  view source on GitHub ↗

r"""Add a task to run a command inside the container when building. Similar to `docker exec`. Args: task (TaskConfig): The configuration for the task. Returns: DockerRuntime: The DockerRuntime instance.

(
        self,
        task: TaskConfig,
    )

Source from the content-addressed store, hash-verified

120 return self
121
122 def add_task(
123 self,
124 task: TaskConfig,
125 ) -> "DockerRuntime":
126 r"""Add a task to run a command inside the container when building.
127 Similar to `docker exec`.
128
129 Args:
130 task (TaskConfig): The configuration for the task.
131
132 Returns:
133 DockerRuntime: The DockerRuntime instance.
134 """
135 self.tasks.append(task)
136 return self
137
138 def exec_run(
139 self,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected