Closed johnml1135 closed 3 years ago
Or, use poetry virtualenv - ClearML needs to be one or the other. Would both together be overkill?
Step1: cpu only - using:
FROM mcr.microsoft.com/dotnet/runtime-deps:5.0.5-focal-amd64
RUN apt-get update -y && apt-get install python3.8 -y
Next, Push that to docker hub. This is our image.
Use that image for running our code.
Next. Update the code to run dotnet tool restore
before everything - to always pull the right stuff.
ClearML should see the poetry file and pull everything automatically (hopefully).
Steps to done: (cpu-only)
What to do about:
Are these extra things that should be installed into the docker image?
Scrap everything and start again - machine needs paths. We need to mount it.
I looked for a solution and documented what I found here: https://stackoverflow.com/questions/67496760/mounting-an-s3-bucket-in-docker-in-a-clearml-agent/67497264#67497264
Only a small number of changes were needed - but I also added the files for mounting rclone and the clearml-agent.
Everything is done and integrated into master. We can open a new issue if we need to.
Should we use docker for the ClearML jobs? More generally, would it be helpful to use docker for development? We could then host it in other locations and remote in using VSC...
Some references for poetry and docker working together: https://github.com/python-poetry/poetry/discussions/1879 https://stackoverflow.com/questions/53835198/integrating-python-poetry-with-docker