Skip to content
Permalink
Browse files

Fix envvar handling in deploy_stack.ps1

Adds the missing $env:BASIC_AUTH and $env:AUTH_URL envvars to the
windows deploy_stack.ps1 script.

Signed-off-by: John McCabe <john@johnmccabe.net>
  • Loading branch information
johnmccabe authored and alexellis committed Jan 24, 2020
1 parent 9fd8a59 commit e244e5ca74df175c5200a23354a8a8930880ff1e
Showing with 4 additions and 1 deletion.
  1. +4 −1 deploy_stack.ps1
@@ -74,16 +74,19 @@ if (Get-Command docker -errorAction SilentlyContinue)
Write-Host "Disabling basic authentication for gateway.."
Write-Host ""
$env:BASIC_AUTH="false";
$env:AUTH_URL=""
}
else
{
Write-Host ""
Write-Host "Enabling basic authentication for gateway.."
Write-Host ""
$env:BASIC_AUTH="true";
$env:AUTH_URL="http://basic-auth-plugin:8080/validate"
}

Write-Host "Deploying OpenFaaS core services"
docker stack deploy func --compose-file ./docker-compose.yml --orchestrator swarm
docker stack deploy func --compose-file ./docker-compose.yml
}
else
{

0 comments on commit e244e5c

Please sign in to comment.
You can’t perform that action at this time.