Track2 docker image build
See original GitHub issueProblems I’m new to the docker file and docker hub stuff, so I’m a bit confused about the docker requirement in the track2 submission.
I’ve set up the train and submission folders for track2 properly, and have manually ran the train.py and policy.py to make sure they work.
I’ve built the docker image (using the provided docker file without any changes) and I’m trying to run it locally to test it before I push it to Docker Hub.
However, the error No module named
smarts`` poped up when I try to run the docker image locally. I assume this is due to I didn’t install smarts (as it is not included in my requirement.txt file under the submission folder) for my docker image. However, I’m not certainly sure how to install smarts in the docker, or whehter I need to do so. Will this dependency be resolved if the docker image is build on the competition server? Or it is something I should figure out.
Any help is appreciated!
Issue Analytics
- State:
- Created 10 months ago
- Comments:5 (1 by maintainers)
Top GitHub Comments
Hi @Adaickalavan,
Thanks for the reply! Indeed, I didn’t pull the newest changes from the repo, so I didn’t have the updated dockerfile and setup.py file in the train folder. Once I did, I got rid of the exception. I’ll upload my new image and resubmit again. Thanks!
Hi @yuant95,
Please try using the latest Track2 Dockerfile which pip installs smarts package. https://github.com/huawei-noah/SMARTS/blob/31ee15a153e2163774fc2571da46fed6ac1421ba/competition/track2/Dockerfile#L32-L35
Make the necessary fixes, reupload your Docker image to DockerHub, and resubmit online to Codalab Track2.