From 2fddd5d06248cb33978b6bcb59fd053c7541af0e Mon Sep 17 00:00:00 2001 From: Pavan Gudiwada <25551553+pavangudiwada@users.noreply.github.com> Date: Thu, 21 Aug 2025 10:34:40 +0530 Subject: [PATCH 1/8] Add comprehensive .dockerignore file Excludes development files, secrets, API keys, documentation, and common temporary files from Docker builds to reduce image size and prevent accidental inclusion of sensitive information. --- .dockerignore | 121 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 121 insertions(+) create mode 100644 .dockerignore diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 000000000..31c6f7065 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,121 @@ +# Git +.git +.gitignore + +# Python +__pycache__/ +*.py[cod] +*$py.class +*.so +.Python +build/ +develop-eggs/ +dist/ +downloads/ +eggs/ +.eggs/ +lib/ +lib64/ +parts/ +sdist/ +var/ +wheels/ +*.egg-info/ +.installed.cfg +*.egg +MANIFEST + +# Virtual environments +.env +.venv +env/ +venv/ +ENV/ +env.bak/ +venv.bak/ + +# Poetry +poetry.lock + +# Testing +.tox/ +.coverage +.coverage.* +.cache +nosetests.xml +coverage.xml +*.cover +.hypothesis/ +.pytest_cache/ + +# Documentation +docs/ +docs/_build/ +.sphinx-build/ +*.md +README* + +# IDEs +.vscode/ +.idea/ +*.swp +*.swo +*~ + +# OS +.DS_Store +.DS_Store? +._* +.Spotlight-V100 +.Trashes +ehthumbs.db +Thumbs.db + +# Logs +*.log +logs/ + +# Temporary files +tmp/ +temp/ + +# Configuration & Secrets +.env* +.env.local +.env.development.local +.env.test.local +.env.production.local +*.key +*.pem +*.crt +secrets/ +credentials/ + +# API Keys & Claude Instructions +CLAUDE.md +CLAUDE.local.md +CLAUDE*.md +*_API_KEY* +*api_key* +*_TOKEN* +*token* +.secrets +config.yaml +~/.holmes/config.yaml + +# Common mistakes +.vscode/settings.json +.idea/workspace.xml +*.backup +*.bak +*.orig +*.tmp +*~ +.DS_Store + +# Node modules (if any) +node_modules/ + +# Holmes specific +~/.holmes/ +.holmes/ From 1064b719ab9d102230ad6e3c3daa257d3661f43a Mon Sep 17 00:00:00 2001 From: Pavan Gudiwada <25551553+pavangudiwada@users.noreply.github.com> Date: Thu, 21 Aug 2025 10:41:11 +0530 Subject: [PATCH 2/8] Enhance .dockerignore with missing patterns from .gitignore Added comprehensive exclusions for: - Test reports and evaluation files - Additional Python build artifacts - Framework-specific files (Django, Flask, Scrapy) - Type checkers and debug symbols - Jupyter notebook files - Task scheduling files - Claude-specific trace files --- .dockerignore | 68 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) diff --git a/.dockerignore b/.dockerignore index 31c6f7065..232ae7f81 100644 --- a/.dockerignore +++ b/.dockerignore @@ -119,3 +119,71 @@ node_modules/ # Holmes specific ~/.holmes/ .holmes/ + +# Additional items from .gitignore +playwright.png +.deepeval* +pyrightconfig.json +evals_report.txt +evals_report.md +config_toolsets.yaml +**/.claude/settings.local.json +.claude-trace/ + +# Testing coverage +htmlcov/ +.nox/ +*.py,cover +cover/ + +# Additional Python +share/python-wheels/ +*.manifest +*.spec +pip-log.txt +pip-delete-this-directory.txt + +# Framework specific +*.mo +*.pot +local_settings.py +db.sqlite3 +db.sqlite3-journal +instance/ +.webassets-cache +.scrapy + +# Build tools +.pybuilder/ +target/ +__pypackages__/ + +# Task scheduling +celerybeat-schedule +celerybeat.pid + +# Sage +*.sage.py + +# Project settings +.spyderproject +.spyproject +.ropeproject + +# MkDocs +/site + +# Type checkers +.mypy_cache/ +.dmypy.json +dmypy.json +.pyre/ +.pytype/ + +# Debug +cython_debug/ + +# Jupyter +.ipynb_checkpoints +profile_default/ +ipython_config.py From 01d72fc97d2a55768613d17b19d73e662a5f6b65 Mon Sep 17 00:00:00 2001 From: Pavan Gudiwada <25551553+pavangudiwada@users.noreply.github.com> Date: Thu, 21 Aug 2025 10:41:30 +0530 Subject: [PATCH 3/8] Adding some gitignore stuff --- .gitignore | 44 +++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 43 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 6abf48dd5..415ab99a1 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,12 @@ -.DS_STORE +.DS_Store +.DS_Store? +._* +.Spotlight-V100 +.Trashes +ehthumbs.db +Thumbs.db tmp/ +temp/ config.yaml # Byte-compiled / optimized / DLL files @@ -169,3 +176,38 @@ config_toolsets.yaml **/.claude/settings.local.json .claude-trace/ + +# API Keys & Secrets +*_API_KEY* +*api_key* +*_TOKEN* +*token* +*.key +*.pem +*.crt +.secrets +secrets/ +credentials/ + +# Claude Instructions +CLAUDE.local.md + +# Holmes specific +~/.holmes/ +.holmes/ + +# Common temporary/backup files +*.backup +*.bak +*.orig +*.tmp +*~ +*.swp +*.swo + +# Additional IDE files +.vscode/settings.json +.idea/workspace.xml + +# Environment files +.env* From 345d405bb8fad836834a18b3362440fd77c14142 Mon Sep 17 00:00:00 2001 From: Pavan Gudiwada <25551553+pavangudiwada@users.noreply.github.com> Date: Thu, 21 Aug 2025 10:48:28 +0530 Subject: [PATCH 4/8] Update .dockerignore Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --- .dockerignore | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.dockerignore b/.dockerignore index 232ae7f81..41e93367f 100644 --- a/.dockerignore +++ b/.dockerignore @@ -95,10 +95,7 @@ credentials/ CLAUDE.md CLAUDE.local.md CLAUDE*.md -*_API_KEY* -*api_key* -*_TOKEN* -*token* +.secrets .secrets config.yaml ~/.holmes/config.yaml From 07b7699bbb75d378ecec73e58b0a17185cbc5991 Mon Sep 17 00:00:00 2001 From: Pavan Gudiwada <25551553+pavangudiwada@users.noreply.github.com> Date: Thu, 21 Aug 2025 10:49:22 +0530 Subject: [PATCH 5/8] Update .dockerignore Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --- .dockerignore | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.dockerignore b/.dockerignore index 41e93367f..7ac956773 100644 --- a/.dockerignore +++ b/.dockerignore @@ -97,9 +97,10 @@ CLAUDE.local.md CLAUDE*.md .secrets .secrets -config.yaml -~/.holmes/config.yaml - +.secrets +# Keep repo config; ignore only local overrides +config.local.yaml +config.*.local.yaml # Common mistakes .vscode/settings.json .idea/workspace.xml From 8b0767b79e98a0eb2160fcca14634254635c8295 Mon Sep 17 00:00:00 2001 From: Pavan Gudiwada <25551553+pavangudiwada@users.noreply.github.com> Date: Thu, 21 Aug 2025 10:50:20 +0530 Subject: [PATCH 6/8] Removed poetry.lock as its needed for builds --- .dockerignore | 2 -- 1 file changed, 2 deletions(-) diff --git a/.dockerignore b/.dockerignore index 7ac956773..12ac4dd5e 100644 --- a/.dockerignore +++ b/.dockerignore @@ -34,8 +34,6 @@ ENV/ env.bak/ venv.bak/ -# Poetry -poetry.lock # Testing .tox/ From e6e1e8b77ade1ce450b9e7ea53f591e284667bc1 Mon Sep 17 00:00:00 2001 From: Pavan Gudiwada <25551553+pavangudiwada@users.noreply.github.com> Date: Thu, 21 Aug 2025 10:51:16 +0530 Subject: [PATCH 7/8] Adding some cache files --- .dockerignore | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.dockerignore b/.dockerignore index 12ac4dd5e..74a2970f7 100644 --- a/.dockerignore +++ b/.dockerignore @@ -45,6 +45,9 @@ coverage.xml *.cover .hypothesis/ .pytest_cache/ ++.mypy_cache/ ++__pypackages__/ ++.ruff_cache/ # Documentation docs/ From f9caf70c4bfa972d77aed10b432e9c80b183d0e3 Mon Sep 17 00:00:00 2001 From: Pavan Gudiwada <25551553+pavangudiwada@users.noreply.github.com> Date: Thu, 21 Aug 2025 10:53:00 +0530 Subject: [PATCH 8/8] Update .gitignore Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --- .gitignore | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 415ab99a1..4cc43c141 100644 --- a/.gitignore +++ b/.gitignore @@ -179,16 +179,30 @@ config_toolsets.yaml # API Keys & Secrets *_API_KEY* -*api_key* +api_key +.api_key +API_KEY *_TOKEN* -*token* +token +.token +TOKEN *.key *.pem *.crt .secrets secrets/ credentials/ - +.npmrc +.yarnrc.yml +.pypirc +# common cert/key formats used for auth +*.p12 +*.pfx +*.p8 +*.der +# keep placeholder files if we want directories present +!secrets/.gitkeep +!credentials/.gitkeep # Claude Instructions CLAUDE.local.md