Add support for gpu-rent.vars and enhance git update functionality
- Updated .gitignore to include gpu-rent.vars. - Modified env.example to introduce the UPDATE_GIT variable for controlling git updates during execution. - Implemented Import-GpuRentVars function in gpu-rent.ps1 to load environment variables from gpu-rent.vars. - Enhanced gpu-rent.sh to support loading variables from gpu-rent.vars and added logic for handling default and extra arguments. - Updated CLI documentation to reflect the new gpu-rent.vars file and its usage in configuration. - Improved bootstrap and provisioning logic to conditionally perform git updates based on the new configuration.
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
# gpu-rent.vars — локальные параметры запуска (не секреты).
|
||||
# Скопируй в gpu-rent.vars и правь. Файл в .gitignore.
|
||||
# Читают: gpu-rent.ps1 / .bat / .sh и python -m gpu_rent (после .env).
|
||||
# Секреты (OS_PASSWORD, CIVITAI_*) — только в .env.
|
||||
|
||||
# Если запуск без аргументов (двойной клик / .\gpu-rent.ps1):
|
||||
# GPU_RENT_DEFAULT_ARGS=up --yes
|
||||
|
||||
# Доп. флаги ко ВСЕМ вызовам (после твоих аргументов):
|
||||
# GPU_RENT_EXTRA_ARGS=
|
||||
|
||||
# Те же имена, что в .env / env.example (несекретные дефолты):
|
||||
# UPDATE_GIT=true
|
||||
# DEFAULT_SPOT=true
|
||||
# SCAN_POOLS=ru-6,ru-7
|
||||
# FLAVOR_PREFERENCE=4090-24,4090-48,a5000,a100-40
|
||||
# SWARMUI_LOCAL_PORT=17801
|
||||
# IDLE_MINUTES=30
|
||||
# IDLE_GRACE_MINUTES=45
|
||||
# NOTIFY_READY=true
|
||||
# PULL_OUTPUT=false
|
||||
# GPU_RENT_SSH_CIDR=0.0.0.0/0
|
||||
Reference in New Issue
Block a user