Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to run a clearml-task without --requirements or --packages when using Docker? #204

Open
konstantinator opened this issue May 22, 2024 · 2 comments

Comments

@konstantinator
Copy link

Hello everyone!

Could someone tell me how to run a clearml-task without using --requirements or --packages? I've set up the necessary environment in a Docker image and don't need to install any additional packages, but running the command without packages results in an error.

Code to start the agent with Docker:

clearml-agent daemon --queue hello_queue --docker my_hello_image

Code to start the task:

clearml-task --project Hello --name hello --script ./hello_world.py --queue hello_queue \
  --docker my_hello_image --docker_args "-v /data:/data \
  --rm --name my_container_hello"

Output

ClearML launch - launch any codebase on remote machine running clearml-agent
Creating new task

Error: requirements.txt not found [/hello_repo/requirements.txt] Use --requirements or --packages

I have to install an unnecessary package (--packages "pip") to make this command work correctly.

@eugen-ajechiloae-clearml

Hi @konstantinator! Would --packages "" work for you?

@konstantinator
Copy link
Author

konstantinator commented May 22, 2024

Hi @eugen-ajechiloae-clearml! Yes, this works for me, thank you. However, it seems that it would be better if it worked without having to specify the --packages key at all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants