forked from Ed-Fi-Alliance-OSS/AdminAPI-2.x
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BuildAdminApiDockerDevelopment.ps1
31 lines (26 loc) · 1.43 KB
/
BuildAdminApiDockerDevelopment.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# SPDX-License-Identifier: Apache-2.0
# Licensed to the Ed-Fi Alliance under one or more agreements.
# The Ed-Fi Alliance licenses this file to you under the Apache License, Version 2.0.
# See the LICENSE and NOTICES files in the project root for more information.
<#
.SYNOPSIS
Script for running the build operation and copy over the latest files to an existing AdminApi docker container for testing.
.DESCRIPTION
Script for facilitating the local docker testing with latest changes. Developer can set the required appsettings values and trigger
the build. Once the build done, the apsettings.json will be updated with values provided and
latest files will be copied over to an existing AdminApi docker container folder.
.EXAMPLE
.\BuildAdminApiDockerDevelopment.ps1
#>
$p = @{
ProductionApiUrl = "http://api"
ApiExternalUrl = "https://localhost:5001"
ApiStartupType = "SharedInstance"
DatabaseEngine = "PostgreSql"
PathBase = "adminapi"
IssuerUrl = "https://localhost:8001"
SigningKey = ""
AdminDB = "host=db-admin;port=5432;username=username;password=root@321;database=EdFi_Admin;pooling=false"
SecurityDB = "host=db-admin;port=5432;username=username;password=root@321;database=EdFi_Security;pooling=false"
}
.\build.ps1 -APIVersion 1.0.6 -Configuration Release -DockerEnvValues $p -Command BuildAndDeployToAdminApiDockerContainer