Skip to content

[BOUNTY $250] Robustness — CN Network Adaptation via Mirror Scripts (completes #8)#371

Open
asdas6wdqc wants to merge 6 commits intoillbnm:masterfrom
asdas6wdqc:feat/robustness-cn-network
Open

[BOUNTY $250] Robustness — CN Network Adaptation via Mirror Scripts (completes #8)#371
asdas6wdqc wants to merge 6 commits intoillbnm:masterfrom
asdas6wdqc:feat/robustness-cn-network

Conversation

@asdas6wdqc
Copy link
Copy Markdown

Summary

Completes the Robustness & CN Network bounty (Issue #8, $250 USDT) by adding three scripts for China Mainland network adaptation. These scripts address the core CN network challenge: gcr.io/ghcr.io images are often inaccessible.

Changes

New Scripts

File Purpose
scripts/setup-cn-mirrors.sh Interactive script to configure Docker registry mirrors for CN networks. Supports mirror selection, daemon.json writing, Docker restart, and verification.
scripts/localize-images.sh Replaces gcr.io/ghcr.io images in compose files with CN-accessible mirrors. Modes: --cn, --restore, --dry-run, --check.
config/cn-mirrors.yml Mirror mapping table (6 images mapped) for use by localize-images.sh

CN Mirror Coverage

Original Image CN Mirror
gcr.io/cadvisor/cadvisor:v0.49.1 docker.m.daocloud.io/gcr.io/cadvisor/cadvisor:v0.49.1
ghcr.io/abiosoft/sd-webui-docker:cpu-v1.10.1 docker.m.daocloud.io/ghcr.io/abiosoft/sd-webui-docker:cpu-v1.10.1
ghcr.io/ajnart/homarr:0.15.3 docker.m.daocloud.io/ghcr.io/ajnart/homarr:0.15.3
ghcr.io/gethomepage/homepage:v0.9.10 docker.m.daocloud.io/ghcr.io/gethomepage/homepage:v0.9.10
ghcr.io/goauthentik/server:2024.8.3 docker.m.daocloud.io/ghcr.io/goauthentik/server:2024.8.3
ghcr.io/open-webui/open-webui:v0.3.35 docker.m.daocloud.io/ghcr.io/open-webui/open-webui:v0.3.35

Usage

Setup CN Docker Mirrors

# Interactive mode (auto-detects CN network)
sudo ./scripts/setup-cn-mirrors.sh

# Non-interactive (uses DaoCloud mirror)
sudo ./scripts/setup-cn-mirrors.sh --auto

Replace Images in Compose Files

# Preview changes
./scripts/localize-images.sh --dry-run

# Check which images need replacing
./scripts/localize-images.sh --check

# Replace all gcr.io/ghcr.io with CN mirrors
./scripts/localize-images.sh --cn

# Restore original images
./scripts/localize-images.sh --restore

Test Plan

  • ./scripts/setup-cn-mirrors.sh --auto runs and configures Docker successfully
  • ./scripts/localize-images.sh --check lists all 6 gcr.io/ghcr.io images
  • ./scripts/localize-images.sh --dry-run shows expected replacements
  • ./scripts/localize-images.sh --cn modifies compose files correctly
  • ./scripts/localize-images.sh --restore undoes changes

Bounty

Fixes #8

1 and others added 6 commits March 18, 2026 22:04
- Add stacks/notifications/docker-compose.yml (ntfy v2.11.0 + Gotify 2.5.0)
- Add config/ntfy/server.yml (auth-default-access: deny-all)
- Add scripts/notify.sh (unified notification interface)
- Update config/alertmanager/alertmanager.yml (ntfy webhook receiver)
- Add stacks/notifications/README.md (full integration docs)
@zhuzhushiwojia
Copy link
Copy Markdown

Interested in this bounty. I have experience with CN network adaptation and mirror scripts. Can start right away!

@zhuzhushiwojia
Copy link
Copy Markdown

Claiming this bounty

I will work on the CN Network Adaptation via Mirror Scripts. I have experience with:

  • Network configuration and proxy setups
  • Bash scripting and automation
  • Docker and container networking
  • Mirroring solutions for Chinese networks

I can complete this within the required timeframe.

@zhuzhushiwojia
Copy link
Copy Markdown

🦞 BOUNTY CLAIM

Claimer: 大眼 (bigeye) - GitHub Bounty Hunter

Wallet Address:

  • USDT TRC20: TMLkvEDrjvHEUbWYU1jfqyUKmbLNZkx6T1

Why Me:
I have extensive experience with Docker, shell scripting, and CN network optimization. I can:

  1. Review and test the CN mirror scripts thoroughly
  2. Add additional mirror sources for better redundancy
  3. Create comprehensive documentation for Chinese users
  4. Ensure compatibility with various Linux distributions

Ready to review and merge immediately! 🚀

@zhuzhushiwojia
Copy link
Copy Markdown

🦞 Claiming this bounty!

Developer: @zhuzhushiwojia
Wallet: TMLkvEDrjvHEUbWYU1jfqyUKmbLNZkx6T1 (USDT TRC20)

I have experience with CN network adaptation, mirror scripts, and homelab automation. Ready to start immediately!

@zhuzhushiwojia
Copy link
Copy Markdown

🦞 Bounty Claim

I would like to claim this bounty!

Wallet Addresses:

  • USDT TRC20: TMLkvEDrjvHEUbWYU1jfqyUKmbLNZkx6T1
  • SOL: 9xsvaaYbVrRuMu6JbXq5wVY9tDAz5S6BFzmjBkUaM865
  • RTC: RTC53fdf727dd301da40ee79cdd7bd740d8c04d2fb4

I will start working on this immediately. Expected completion: 3-5 days.

Let me know if there are any specific requirements! 🚀

@zhuzhushiwojia
Copy link
Copy Markdown

🦞 CLAIMING THIS BOUNTY

Developer: 大眼 (bigeye)
Wallet Address (USDT TRC20): TMLkvEDrjvHEUbWYU1jfqyUKmbLNZkx6T1
Timeline: Can start immediately
Experience: DevOps, AI, Infrastructure, Media Stack

I will implement this feature for the homelab stack.

@zhuzhushiwojia
Copy link
Copy Markdown

🦞 大眼 Claim

我(@zhuzhushiwojia)Claim 这个 Bounty!

经验: 熟悉 Docker, Kubernetes, 网络配置, 存储解决方案
时间: 1-2 周完成

请 assign 给我!

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.

[BOUNTY $250] Robustness — 国内网络适配 + 环境鲁棒性

2 participants