-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.ps1
More file actions
29 lines (25 loc) · 846 Bytes
/
build.ps1
File metadata and controls
29 lines (25 loc) · 846 Bytes
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
Write-Host "Starting All Docker Builds"
Write-Host "Please use only for development"
# Build H&S Image
Set-Location -Path hashing_service -ErrorAction Stop
docker build -f Dockerfile -t app/hashing-salting .
Set-Location -Path ..
# Build JWT Auth Image
Set-Location -Path jwt_authentication_service -ErrorAction Stop
$ARTIFACT_PATTERN = "target/jwt_authentication_service*.jar"
if (Test-Path $ARTIFACT_PATTERN)
{
Write-Host "Artifact already exists. Skipping Maven package."
}
else
{
Write-Host "Artifact does not exist. Running Maven package."
mvn package -Dnative
}
docker build -f src/main/docker/Dockerfile.native -t app/jwt-auth .
Set-Location -Path ..
# Build Frontend Image
Set-Location -Path authentication_page_service -ErrorAction Stop
docker build -f Dockerfile -t app/frontend .
Set-Location -Path ..
Write-Host "Done"