Add Docker Build Script
This commit is contained in:
1 parent
99fd518ddb
commit
88f72e767f
14 files changed
+77
-17
No files matched your search
@@ -0,0 +1,21 @@
|
||||
# AefComponentTest Docker 이미지 빌드 및 추출 스크립트
|
||||
|
||||
$IMAGE_NAME = "aef-component-test"
|
||||
$TAG = "0.0.1"
|
||||
$OUTPUT_FILE = "aef-component-test.tar"
|
||||
|
||||
Write-Host "--- Docker 이미지 빌드 시작: ${IMAGE_NAME}:${TAG} ---" -ForegroundColor Cyan
|
||||
docker build -t "$($IMAGE_NAME):$TAG" .
|
||||
|
||||
if ($LASTEXITCODE -eq 0) {
|
||||
Write-Host "--- 이미지 추출 시작: $OUTPUT_FILE ---" -ForegroundColor Cyan
|
||||
docker save -o $OUTPUT_FILE "$($IMAGE_NAME):$TAG"
|
||||
|
||||
if ($LASTEXITCODE -eq 0) {
|
||||
Write-Host "성공! $OUTPUT_FILE 파일이 생성되었습니다." -ForegroundColor Green
|
||||
} else {
|
||||
Write-Host "이미지 추출 중 오류가 발생했습니다." -ForegroundColor Red
|
||||
}
|
||||
} else {
|
||||
Write-Host "빌드 중 오류가 발생했습니다." -ForegroundColor Red
|
||||
}
|
||||
Reference in new issue
Block a user