From acfeae399082dd874efc81d52aaa53350d291803 Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Tue, 9 Jul 2024 17:19:41 -0400 Subject: [PATCH 1/3] Use `-NoProfile` for the powershell dockersand. --- dockersand.bat | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dockersand.bat b/dockersand.bat index 4da6370..2b586a1 100644 --- a/dockersand.bat +++ b/dockersand.bat @@ -1 +1 @@ -powershell.exe -ExecutionPolicy Bypass dockersand.ps1 +powershell.exe -NoProfile -ExecutionPolicy Bypass dockersand.ps1 From 774c19dce1007481038f57089a1b2152f3c474b5 Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Tue, 9 Jul 2024 19:20:28 -0400 Subject: [PATCH 2/3] Fix dockersand.bat not even working. --- dockersand.bat | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dockersand.bat b/dockersand.bat index 2b586a1..ef3fac3 100644 --- a/dockersand.bat +++ b/dockersand.bat @@ -1 +1,2 @@ -powershell.exe -NoProfile -ExecutionPolicy Bypass dockersand.ps1 +@echo off +powershell.exe -NoProfile -ExecutionPolicy Bypass -File dockersand.ps1 From 908bc6b624218fd732ca4b7c88956cabe9d802c7 Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Tue, 9 Jul 2024 19:33:12 -0400 Subject: [PATCH 3/3] Update README for PowerShell execution policy shennanigans. --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 361f352..9124ead 100644 --- a/README.md +++ b/README.md @@ -262,6 +262,10 @@ testing server much more quickly and easily on Windows, Mac, or Linux. the base docker container name. You can overwrite this usage by setting the $ProjectName variable in `dockersand.ps1` (for Windows) or the PROJECT_NAME variable in `dockersand.sh` (for *nix) to the desired base container name. + - Windows users: By default, Windows Terminal may open a *Windows PowerShell* + prompt. Running any `./dockersand` commands in *Windows PowerShell* may trigger + security exceptions. You can avoid these by using the *Command Prompt* or by + running `Unblock-File dockersand.ps1`. 4) Once the build is complete, run `./dockersand start` to start the new containers for the database and the dirtsand server. Once this command has been run, you should