question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Track2 docker image build

See original GitHub issue

Problems 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:closed
  • Created 10 months ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
yuant95commented, Nov 10, 2022

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!

0reactions
Adaickalavancommented, Nov 10, 2022

Hi @yuant95,

  1. 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

  2. Make the necessary fixes, reupload your Docker image to DockerHub, and resubmit online to Codalab Track2.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Multi-stage builds - Docker Documentation
Use multi-stage builds ... With multi-stage builds, you use multiple FROM statements in your Dockerfile. Each FROM instruction can use a different base,...
Read more >
docker build - Docker Documentation
tar.gz to the Dockerfile that is used to build the image. Any ADD commands in that Dockerfile that refers to local paths ...
Read more >
docker image build
docker image build : Build an image from a Dockerfile. ... --cgroup-parent, Optional parent cgroup for the container. --compress, Compress the build context ......
Read more >
Build your Go image - Docker Documentation
Learn how to build your first Docker image by writing a Dockerfile.
Read more >
Create a base image - Docker Documentation
Create a simple parent image using scratch . You can use Docker's reserved, minimal image, scratch , as a starting point for...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found