diff --git a/README.md b/README.md index a5dbe0f..5a310e7 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ ### Q. What if I'm on Windows? -__A.__ You can try building the image manually, but I currently don't have any PowerShell helper scripts to do this for you. Be aware that this image is Linux-based which means that it won't run alongside Windows-based containers. +__A.__ Good news! There is a PowerShell script included alongside the original Bash scripts. Just make sure your PowerShell environment is configured to run unsigned scripts via the [Set-ExecutionPolicy](https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.security/set-executionpolicy?view=powershell-6) cmdlet. ### Q. Why wouldn't I just run these servers locally instead of firing up containers? diff --git a/README.md b/README.md index a5dbe0f..5a310e7 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ ### Q. What if I'm on Windows? -__A.__ You can try building the image manually, but I currently don't have any PowerShell helper scripts to do this for you. Be aware that this image is Linux-based which means that it won't run alongside Windows-based containers. +__A.__ Good news! There is a PowerShell script included alongside the original Bash scripts. Just make sure your PowerShell environment is configured to run unsigned scripts via the [Set-ExecutionPolicy](https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.security/set-executionpolicy?view=powershell-6) cmdlet. ### Q. Why wouldn't I just run these servers locally instead of firing up containers? diff --git a/build-docker-doom.ps1 b/build-docker-doom.ps1 new file mode 100644 index 0000000..0bf5b46 --- /dev/null +++ b/build-docker-doom.ps1 @@ -0,0 +1,14 @@ +# This is needed to keep PoSh from displaying that ugly red error +$CurrentPreference = $ErrorActionPreference +$ErrorActionPreference = 'stop' + +try +{ + if(Get-Command docker) + { + if($args.Length -gt 0) { docker build . -t $args[0] } + else { docker build . -t docker-doom } + } +} +catch{"You have to install docker before you can build the container."} +Finally {$ErrorActionPreference=$CurrentPreference}