Windows system backup, conflict analysis & containerised AI dev migration toolkit#10
Draft
Windows system backup, conflict analysis & containerised AI dev migration toolkit#10
Conversation
… AI dev environment Co-authored-by: ahmedessamX <245457521+ahmedessamX@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Analyze installed software for system backup
Windows system backup, conflict analysis & containerised AI dev migration toolkit
Mar 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Addresses the need to fully snapshot a Windows machine before a clean reinstall, identify dependency conflicts (especially in AI/ML tooling), and boot the new system into a clean, reproducible architecture.
Scripts
scripts/Analyze-System.ps1— 17-section system scan: installed apps (winget/choco/scoop/registry), Python/conda envs + package lists, CUDA/cuDNN/GPU, Docker images/containers/volumes, WSL2 distros, VS Code extensions, env vars, PATH, startup programs, drivers, scheduled tasks. Ends with a conflict analysis section that flags multiple Python executables, multiple CUDA installs, conda/pip mixing, and PATH length violations.scripts/Backup-System.ps1— Produces a timestamped restorable bundle: winget/choco/scoop package lists, per-env conda YAMLs, pip freeze, VS Code settings + extensions, SSH keys, Git config, dotfiles, PowerShell profiles, env vars as a ready-to-run restore script, hosts file, scheduled tasks XML, Docker image list (+ optional tar export), optional WSL distro tar exports.scripts/Setup-NewSystem.ps1— Idempotent bootstrap for a fresh Windows install from the bundle. Installs Chocolatey + Scoop, restores packages, enables WSL2 and imports distros, installs Docker Desktop and loads images, recreates conda envs, restores VS Code, SSH, Git, dotfiles, env vars, and scheduled tasks.Containerised AI Dev Environment (
docker/ai-dev/)Replaces the fragile host-installed CUDA + multiple conda envs pattern with a single GPU-passthrough container. Only the host NVIDIA driver is required on Windows; the CUDA toolkit lives entirely inside the image.
Dockerfile—nvidia/cuda:12.4.1-cudnn9-devel-ubuntu22.04base, Miniconda, isolatedaiconda envdocker-compose.yml— GPU passthrough viadeploy.resources, JupyterLab (8888), optional TensorBoard (--profile monitoring), optional PostgreSQL (--profile db), named volumes for HuggingFace cache and pip cacherequirements.txt— PyTorch~=2.3.0, HuggingFace stack, LangChain, OpenAI, Gradio, Streamlit, FastAPI, W&B, MLflow — pinned with~=to avoid silent CUDA-incompatible upgrades.env.example— Template forHF_TOKEN,OPENAI_API_KEY, etc.;.envis gitignoredDocs
docs/new-system-architecture.md— Layer diagram (Windows → WSL2 → Docker Engine → per-domain containers), package manager decision matrix, WSL2.wslconfigtuning, conda env naming conventions, env var hygienedocs/ai-dev-environment.md— GPU passthrough prerequisites, CUDA version matrix (11.8–12.4), container workflow, image save/load/push, troubleshooting table✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.