You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello!
I have a pre-built docker image with all dependencies that I need, so I want to run a task in it, without downloading additional dependencies.
So I initialized clearml agent daemon and redefine default_docker_image.
As example, I created a test task:
from clearml import Task
from tqdm import tqdm
import time
task = Task.init('test_proj', 'test_job')
lst = list(range(5))
for i in tqdm(lst):
time.sleep(1)
Next, in the web, I selected my task and enqueued it.
Аfter that clearml starts running the task and tries to install dependencies into my container, but I don't need that and I want it to just execute the code in it.
@nikiniki1 The 'Python Packages' section of the task records the python environment, and tells the agent what to install.
Before enqueuing the task - reset the 'Python Packages' section so the agent will not install anything.
@ainoam Thanks! It slipped my mind)
But docker runs with some updating and installations (e.g. apt-get update, installs libsm6, libxext6, libxrender-dev, libglib2.0-0 etc). Still, clearml, although it does not try to install python dependencies, connects to the server and wants to install system dependencies, which I cannot install in any way (agents are isolated from net), but at the same time my docker image is configured including these system dependencies. In other words, there is no need to check and re-install dependencies.
P.S. It would be easier for me to configure the docker container launch command myself, but I don’t quite understand where in the clearml-agent code I can do this
@nikiniki1 to disable installing packages inside a docker you can pass the CLEARML_AGENT_SKIP_PIP_VENV_INSTALL or the CLEARML_AGENT_SKIP_PYTHON_ENV_INSTALL environment variables (see here)
Hello!
I have a pre-built docker image with all dependencies that I need, so I want to run a task in it, without downloading additional dependencies.
So I initialized clearml agent daemon and redefine default_docker_image.
As example, I created a test task:
Next, in the web, I selected my task and enqueued it.
Аfter that clearml starts running the task and tries to install dependencies into my container, but I don't need that and I want it to just execute the code in it.
The text was updated successfully, but these errors were encountered: