fix: Resolve Docker container HOME environment and add cross-compilation support#10
fix: Resolve Docker container HOME environment and add cross-compilation support#10jamesbrink merged 1 commit intomainfrom
Conversation
Code Review - PR #10Thank you for this comprehensive PR! This addresses several important issues and adds valuable cross-compilation support. Here's my detailed review: ✅ Strengths1. Docker HOME Environment FixThe addition of 2. Robust Path Handling in config.shThe BASE_DIR="${COMFY_USER_DIR:-${HOME:-/root}/.config/comfy-ui}"This ensures the application works even when 3. CPU Flag for Docker ImageAdding 4. Excellent Refactoring with mkComfyPackagesThe introduction of the
5. Cross-Compilation SupportThe macOS → Linux Docker build support is well-implemented:
|
…ion support - Fix $HOME not being set in Docker containers causing //.config error - Add HOME=/root to both CPU and CUDA Docker image environments - Update config.sh to use COMFY_USER_DIR with proper fallbacks - Add --cpu flag to CPU Docker image to prevent CUDA init crash - Refactor flake.nix with mkComfyPackages function for reusability - Add cross-compilation support for building Linux images from macOS - Add buildDockerLinux and buildDockerLinuxCuda apps for macOS users - Remove outdated persistence warning from README
e794fd6 to
0a450d7
Compare
Summary
$HOMEnot being set in Docker containers causing//.configerrorHOME=/rootto both CPU and CUDA Docker image environmentsconfig.shto useCOMFY_USER_DIRwith proper fallbacks:${COMFY_USER_DIR:-${HOME:-/root}/.config/comfy-ui}--cpuflag to CPU Docker image to prevent CUDA initialization crashflake.nixwithmkComfyPackagesfunction for reusabilitybuildDockerLinuxandbuildDockerLinuxCudaapps for macOS usersTest plan
aarch64-linuxDocker image from macOS using remote NixOS builder$HOMEerror--cpuflag (no CUDA assertion error)