You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge pull request #53 from ArchetypicalSoftware/hotfix/certs
This pull request introduces several improvements to how the system handles Docker volume mounts, particularly addressing the issue where Docker may create directories instead of files when mounting non-existent paths. It adds robust validation and correction logic for mount sources, improves error handling and user guidance for certificate and config file issues, and enhances cross-platform compatibility (including WSL2). Additionally, it expands the set of allowed commands in the local settings.
Docker Volume Mount Validation and Correction:
Added EnsureVolumeMountSource logic to both LocalDockerClient and FallbackDockerEngine to validate and fix mount sources before container creation, preventing Docker from creating directories where files are expected. If a file is expected but a directory exists, it is removed and appropriate errors are thrown if the file is missing. Parent directories are ensured to exist. [1] [2] [3] [4]
Certificate and Config File Handling Improvements:
Enhanced logic in ReverseProxyClient and UpdateClustersCommand to handle cases where certificate paths are directories instead of files, including fallback to shell commands (with sudo if needed) for removal on systems like WSL2 or Mac. Improved error messages guide the user to resolve permission issues. [1] [2] [3] [4] [5]
In DockerHubClient, added logic to ensure the ConfigMounts directory exists, remove incorrectly created directories for config files, and create or copy a default config if missing.
User Guidance and Error Messaging:
Improved error messages for missing certificate files, including suggestions for copying certificates from .bin/Certs to the project root and clarifying expected file locations. [1] [2]
Cross-Platform and WSL2 Support:
Updated comments and logic to explicitly mention and support WSL2 environments, not just Mac, for Docker directory issues. [1] [2]
Local Settings Update:
Expanded the list of allowed commands in .claude/settings.local.json to include grep, dotnet build, dotnet test, and generic test commands, as well as web fetches from github.com.
0 commit comments