Skip to content

Commit af089a0

Browse files
authored
Merge pull request #79 from mmartial/20251006
20251006
2 parents 3804aaf + 5267b78 commit af089a0

File tree

3 files changed

+23
-2
lines changed

3 files changed

+23
-2
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ DOCKER_CMD=docker
55
DOCKER_PRE="NVIDIA_VISIBLE_DEVICES=all"
66
DOCKER_BUILD_ARGS=
77

8-
COMFYUI_NVIDIA_DOCKER_VERSION=20251005
8+
COMFYUI_NVIDIA_DOCKER_VERSION=20251006
99

1010
COMFYUI_CONTAINER_NAME=comfyui-nvidia-docker
1111

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -992,6 +992,7 @@ Once you are confident that you have migrated content from the old container's f
992992

993993
# 7. Changelog
994994

995+
- 20251006: Fix environment variable loading (side effect of fix for loading configuration file overrides, as reported in [Issue 78](https://github.com/mmartial/ComfyUI-Nvidia-Docker/issues/78))
995996
- 20251005: Fix loading configuration file overrides (e.g. `comfyui-nvidia_config.sh`) + extended `userscripts_dir` to support Nunchaku and xformers.
996997
- 20251001: Added additional libraries to the base image to support a few custom nodes + new userscripts_dir script for onnxruntime + added Tailscale Docker Compose usage.
997998
- 20250817: Added automatic PyTorch selection for `PREINSTALL_TORCH` environment variable based on CUDA version + added `DISABLE_UPGRADES` and `PREINSTALL_TORCH_CMD` environment variables.

init.bash

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,18 +55,38 @@ if [ ! -d $itdir ]; then mkdir $itdir; chmod 777 $itdir; fi
5555
if [ ! -d $itdir ]; then error_exit "Failed to create $itdir"; fi
5656

5757
# Set user and group id
58+
it=$itdir/comfy_user_uid
59+
if [ -z "${WANTED_UID+x}" ]; then
60+
if [ -f $it ]; then WANTED_UID=$(cat $it); fi
61+
fi
5862
WANTED_UID=${WANTED_UID:-1024}
63+
if [ ! -f $it ]; then write_worldtmpfile $it "$WANTED_UID"; fi
5964
echo "-- WANTED_UID: \"${WANTED_UID}\""
6065

66+
it=$itdir/comfy_user_gid
67+
if [ -z "${WANTED_GID+x}" ]; then
68+
if [ -f $it ]; then WANTED_GID=$(cat $it); fi
69+
fi
6170
WANTED_GID=${WANTED_GID:-1024}
71+
if [ ! -f $it ]; then write_worldtmpfile $it "$WANTED_GID"; fi
6272
echo "-- WANTED_GID: \"${WANTED_GID}\""
6373

6474
# Set security level
75+
it=$itdir/comfy_security_level
76+
if [ -z "${SECURITY_LEVEL+x}" ]; then
77+
if [ -f $it ]; then SECURITY_LEVEL=$(cat $it); fi
78+
fi
6579
SECURITY_LEVEL=${SECURITY_LEVEL:-"normal"}
80+
if [ ! -f $it ]; then write_worldtmpfile $it "$SECURITY_LEVEL"; fi
6681
echo "-- SECURITY_LEVEL: \"${SECURITY_LEVEL}\""
6782

6883
# Set base directory (if not used, set to $ignore_value)
84+
it=$itdir/comfy_base_directory
85+
if [ -z "${BASE_DIRECTORY+x}" ]; then
86+
if [ -f $it ]; then BASE_DIRECTORY=$(cat $it); fi
87+
fi
6988
BASE_DIRECTORY=${BASE_DIRECTORY:-"$ignore_value"}
89+
if [ ! -f $it ]; then write_worldtmpfile $it "$BASE_DIRECTORY"; fi
7090
echo "-- BASE_DIRECTORY: \"${BASE_DIRECTORY}\""
7191

7292
# Validate base directory
@@ -164,7 +184,7 @@ if [ "A${whoami}" == "Acomfytoo" ]; then
164184
echo "-- Running as comfytoo, will switch comfy to the desired UID/GID"
165185
# The script is started as comfytoo -- UID/GID 1025/1025
166186

167-
FORCE_CHOWN=${FORCE_CHOWN:-"false"} # any value works, empty value or false means disabled
187+
FORCE_CHOWN=${FORCE_CHOWN:-"false"} # any value works, empty value or false means disabled
168188
if [ "A${FORCE_CHOWN}" != "Afalse" ]; then
169189
echo "-- Force chown mode enabled, will force change directory ownership as comfy user during script rerun (might be slow)"
170190
sudo touch /etc/comfy_force_chown

0 commit comments

Comments
 (0)