Skip to content

documentation to clarify and streamline the process for building and publishing a miner solution as a Docker image.#110

Open
abdibekbolot wants to merge 1 commit intomainfrom
dev
Open

documentation to clarify and streamline the process for building and publishing a miner solution as a Docker image.#110
abdibekbolot wants to merge 1 commit intomainfrom
dev

Conversation

@abdibekbolot
Copy link
Contributor

This pull request updates and expands the miner workflow documentation to clarify and streamline the process for building and publishing a miner solution as a Docker image. The documentation now provides step-by-step instructions for initializing the environment, configuring and building the Docker image, verifying the image locally, and publishing it securely to Docker Hub. It also introduces new warnings and tips to help prevent common mistakes, such as building from the wrong directory or exposing sensitive information.

Key documentation improvements:

Clarification and correction of directory structure:

  • Updated all references from templates/commit to examples/miner_commit for both challenge templates and solution development paths, ensuring consistency and accuracy in instructions.

Expanded and reorganized build and publish workflow:

  • Added a new section for environment initialization, including steps to activate the miner service, start Docker Compose, and verify running containers.
  • Detailed the correct procedure for configuring and building the miner Docker image, emphasizing the importance of building from the correct directory and not modifying the challenge container.
  • Introduced a local verification (sanity check) step to ensure the correct image is being used before publishing.

Security and submission best practices:

  • Added prominent warnings against including challenge names or Discord usernames in image names to prevent submission theft, and clarified which fields to edit in configuration files.

Improved instructions for Docker Hub publishing:

  • Broke down the Docker Hub publishing process into clear sub-steps (account creation, login, push, and SHA256 digest retrieval), with example commands and expected outputs for each.

@abdibekbolot abdibekbolot self-assigned this Mar 14, 2026
Copilot AI review requested due to automatic review settings March 14, 2026 07:52
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the miner workflow documentation to better guide users through building, verifying, and publishing a miner solution Docker image, while aligning template directory references to examples/miner_commit.

Changes:

  • Reworked the “Build and Publish” workflow with environment init, build configuration guidance, local sanity checks, and clearer Docker Hub publishing steps.
  • Updated “Develop Solution” docs and template links to reference examples/miner_commit instead of templates/commit.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
docs/miner/workflow/3.build-and-publish.md Expanded and reorganized build/publish steps; added warnings/tips and a local verification step.
docs/miner/workflow/2.develop-solution.md Updated challenge template links and instructions to use examples/miner_commit.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

Comment on lines +63 to +80
!!! danger "DO NOT BUILD FROM THE ROOT DIRECTORY"
Do **not** run the following command from the project root:

```sh
docker build -t <USERNAME>/<REPO_NAME>:<VERSION> .
# For example:
docker build -t my_username/my_repo:1.0.0 .
```bash
docker build .
```

!!! danger "IMPORTANT"
To prevent submission theft, please don't include the challenge name or your Discord username in the image name. This precaution is necessary because multiple miners can locate your image on Docker Hub and submit it on your behalf.
This will either fail or build the wrong image.

## 3.2. Publish docker image
Always build through **Docker Compose**, which ensures the correct build context:

### 3.2.1. Create Docker Hub account
```
cd ./examples/miner_commit
```

```bash
docker compose build miner-commit-api
```
Comment on lines +49 to +52
docker ps -a
~~~

You should see two containers:
Comment on lines +54 to +56
- **Auto Browser Sniffer Challenge**: <https://github.com/RedTeamSubnet/ab-sniffer-challenge/tree/main/examples/miner_commit>
- **Anti-Detect Automation Challenge**: <https://github.com/RedTeamSubnet/ada-detection-challenge/tree/main/examples/miner_commit>
- **Humanize Behavior Challenge**: <https://github.com/RedTeamSubnet/humanize-behaviour-challenge/tree/main/examples/miner_commit>
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

Successfully merging this pull request may close these issues.

2 participants