File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -90,6 +90,14 @@ $cosmosConnForHost = "AccountEndpoint=https://localhost:${CosmosHostPort}/;Accou
9090
9191Start-Dab - network ' stamps-net' - containerName $dabContainer - dabPort $DabPort - dabConfigPath ' .\management-portal\dab\dab-config.json' - cosmosConn $cosmosConnForContainers
9292
93+ # Install emulator certificate into DAB container trust store
94+ $pem = Join-Path $env: TEMP " cosmos-emulator.pem"
95+ try { Invoke-WebRequest - Uri " https://localhost:${CosmosHostPort} /_explorer/emulator.pem" - OutFile $pem - SkipCertificateCheck } catch {}
96+ if (Test-Path $pem ) {
97+ docker cp $pem ${dabContainer} :/ usr/ local/ share/ ca- certificates/ cosmos- emulator.crt | Out-Null
98+ docker exec ${dabContainer} update-ca - certificates | Out-Null
99+ }
100+
93101# Wait for DAB GraphQL
94102Wait-Http - url " http://localhost:${DabPort} /graphql" - timeoutSec 120
95103
You can’t perform that action at this time.
0 commit comments