-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Docker env launch script for windows
- Loading branch information
Dawith
committed
Sep 30, 2025
1 parent
15f9af7
commit 7f019ea
Showing
1 changed file
with
15 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| Get-Content .env | foreach { | ||
| $name, $value = $_.split('=') | ||
| if ([string]::IsNullOrWhiteSpace($name) -or $name.Contains('#')) { | ||
| return | ||
| } | ||
| Set-Content env:\$name $value | ||
| } | ||
|
|
||
| docker run --rm -it ` | ||
| -v ${PWD}:/app/code ` | ||
| -v ${env:DATAPATH}:/app/workdir ` | ||
| --gpus all ` | ||
| --shm-size=4g ` | ||
| --name geonosis ` | ||
| geonosis |