mirror of
https://github.com/stellarshenson/stellars-jupyterhub-ds.git
synced 2026-03-07 21:50:28 +00:00
changed scripts directory
This commit is contained in:
23
scripts/start.bat
Executable file
23
scripts/start.bat
Executable file
@@ -0,0 +1,23 @@
|
||||
@echo off
|
||||
|
||||
REM Change directory to where the script is
|
||||
cd /d "%~dp0"
|
||||
|
||||
REM Check for Nvidia GPU using wmic, only NVIDIA check is supported
|
||||
wmic path win32_VideoController get name | findstr /i "NVIDIA" >nul
|
||||
|
||||
REM Capture the exit code
|
||||
set gpu_available=%errorlevel%
|
||||
|
||||
REM Execute commands based on GPU availability
|
||||
if %gpu_available% equ 0 (
|
||||
echo NVIDIA GPU is available
|
||||
docker.exe compose --env-file ..\.env -f ..\compose.yml -f ..\compose-gpu.yml up --no-recreate --no-build -d
|
||||
) else (
|
||||
echo NVIDIA GPU is not available
|
||||
docker.exe compose --env-file ..\.env -f ..\compose.yml up --no-recreate --no-build -d
|
||||
)
|
||||
|
||||
REM EOF
|
||||
|
||||
|
||||
Reference in New Issue
Block a user