Example code for the Text Detection Submission can be found in the redteam_core/miner/commits/text_detection
directory. Follow the steps below to build, tag, push, and update the active commit:
cd redteam_core/miner/commits/text_detection
To build the Docker image for the text detection submission, run:
docker build -t text_detection_submission:0.0.1 .
After building the image, tag it with your repository name:
docker tag text_detection_submission:0.0.1 myhub/text_detection_submission:0.0.1
Log in to your Docker Hub account using the following command:
docker login
Enter your Docker Hub credentials when prompted.
Push the tagged image to your Docker Hub repository:
docker push myhub/text_detection_submission:0.0.1
After pushing the image, retrieve the digest by running:
docker inspect --format='{{index .RepoDigests 0}}' myhub/text_detection_submission:0.0.1
Finally, go to the neurons/miner/active_commit.yaml
file and update it with the new image tag:
- text_detection---myhub/text_detection_submission@<sha256:digest>