Skip to content

Commit

Permalink
Launch script made compatible with ps v7+
Browse files Browse the repository at this point in the history
  • Loading branch information
Dawith committed Mar 2, 2026
1 parent e4092b2 commit 9a50419
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions winlaunch.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@
# container with the appropriate volume bind mount.

# Load environment variables from .env file
Get-Content .env | foreach {
$name, $value = $_.split('=')
if ([string]::IsNullOrWhiteSpace($name) -or $name.Contains('#')) {
return
}
Set-Content env:\$name $value

Get-Content .env | ForEach-Object {
if ($_ -match '^\s*$' -or $_ -match '^\s*#') { return }

$name, $value = $_ -split '=', 2
Set-Variable -Name $name -Value $value
}

# Docker environment launch
docker run --rm -it `
-v ${PWD}:/app/code `
-v ${env:DATAPATH}:/app/workdir `
-v "${DATAPATH}:/app/workdir" `
--gpus all `
--shm-size=4g `
--name geonosis `
Expand Down

0 comments on commit 9a50419

Please sign in to comment.