-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.ps1
More file actions
21 lines (15 loc) · 678 Bytes
/
Copy pathbuild.ps1
File metadata and controls
21 lines (15 loc) · 678 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Param(
[string]$LOG_PATH = "${PWD}\logs",
[string]$LOG_PEFIX = "docker",
[string]$LOG_SUFFIX = ".log",
[string]$TAG = "jdk11",
[string]$FILE = "Dockerfile",
[string]$FUNCTIONS_URI = "https://github.com/aem-design/aemdesign-docker/releases/latest/download/functions.ps1",
[string]$COMMAND = "docker build . -f .\${FILE} -t ${TAG}"
)
$SKIP_CONFIG = $true
$PARENT_PROJECT_PATH = "."
. ([Scriptblock]::Create((([System.Text.Encoding]::ASCII).getString((Invoke-WebRequest -Uri "${FUNCTIONS_URI}").Content))))
printSectionBanner "Building Image"
printSectionLine "$COMMAND" "warn"
Invoke-Expression -Command "$COMMAND" | Tee-Object -Append -FilePath "${LOG_FILE}"