forked from eclipse-aaspe/server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BuildDockerImages.ps1
executable file
·54 lines (43 loc) · 1005 Bytes
/
BuildDockerImages.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#!/usr/bin/env pwsh
<#
.SYNOPSIS
This script builds all the docker images.
#>
$ErrorActionPreference = "Stop"
function Main
{
if ($null -eq (Get-Command "docker" -ErrorAction SilentlyContinue))
{
throw "Unable to find docker in your PATH"
}
Set-Location (Split-Path -Parent $PSScriptRoot)
##
# AasxServerBlazor
##
$imageTag = "aasx-server-blazor-for-demo"
Write-Host "Building the docker image: $imageTag"
docker build `
-t $imageTag `
-f src/docker/Dockerfile-AasxServerBlazor `
.
Write-Host "The image $imageTag has been built."
##
# AasxServerCore
##
$imageTag = "aasx-server-core-for-demo"
Write-Host "Building the docker image: $imageTag"
docker build `
-t $imageTag `
-f src/docker/Dockerfile-AasxServerCore `
.
Write-Host "The image $imageTag has been built."
}
$previousLocation = Get-Location
try
{
Main
}
finally
{
Set-Location $previousLocation
}