-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathcreate-images-tasks.ps1
More file actions
113 lines (103 loc) · 2.55 KB
/
create-images-tasks.ps1
File metadata and controls
113 lines (103 loc) · 2.55 KB
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
task . `
BuildDotnetSdk80 `
, BuildDotnetSdk90 `
, BuildDotnetSdk100 `
, BuildDotnetRuntime80 `
, BuildDotnetRuntime90 `
, BuildDotnetRuntime100 `
, BuildMsSqlDatabase `
, BuildPgSqlDatabase `
, BuildMySqlDatabase
Enter-Build {
$context = Join-Path $PSScriptRoot '..\..\Sources\Docker'
}
task BuildMsSqlDatabase {
$dockerfile = Join-Path $context 'image-mssql.dockerfile'
exec {
docker build `
--pull `
-f $dockerfile `
-t sqldatabase/mssql:2025 `
$context
}
}
task BuildPgSqlDatabase {
$dockerfile = Join-Path $context 'image-postgres-133.dockerfile'
exec {
docker build `
--pull `
-f $dockerfile `
-t sqldatabase/postgres:13.3 `
$context
}
}
task BuildMySqlDatabase {
$dockerfile = Join-Path $context 'image-mysql.dockerfile'
exec {
docker build `
--pull `
-f $dockerfile `
-t sqldatabase/mysql:9.4 `
$context
}
}
task BuildDotnetSdk80 {
$dockerfile = Join-Path $context 'image-dotnet-sdk-8.0.dockerfile'
exec {
docker build `
--pull `
-f $dockerfile `
-t sqldatabase/dotnet_pwsh:8.0-sdk `
.
}
}
task BuildDotnetRuntime80 {
$dockerfile = Join-Path $context 'image-dotnet-runtime-8.0.dockerfile'
exec {
docker build `
--pull `
-f $dockerfile `
-t sqldatabase/dotnet_pwsh:8.0-runtime `
.
}
}
task BuildDotnetSdk90 {
$dockerfile = Join-Path $context 'image-dotnet-sdk-9.0.dockerfile'
exec {
docker build `
--pull `
-f $dockerfile `
-t sqldatabase/dotnet_pwsh:9.0-sdk `
.
}
}
task BuildDotnetRuntime90 {
$dockerfile = Join-Path $context 'image-dotnet-runtime-9.0.dockerfile'
exec {
docker build `
--pull `
-f $dockerfile `
-t sqldatabase/dotnet_pwsh:9.0-runtime `
.
}
}
task BuildDotnetSdk100 {
$dockerfile = Join-Path $context 'image-dotnet-sdk-10.0.dockerfile'
exec {
docker build `
--pull `
-f $dockerfile `
-t sqldatabase/dotnet_pwsh:10.0-sdk `
.
}
}
task BuildDotnetRuntime100 {
$dockerfile = Join-Path $context 'image-dotnet-runtime-10.0.dockerfile'
exec {
docker build `
--pull `
-f $dockerfile `
-t sqldatabase/dotnet_pwsh:10.0-runtime `
.
}
}