22 lines
805 B
PowerShell
22 lines
805 B
PowerShell
# AefComponentTest Docker 이미지 빌드 및 추출 스크립트
|
|
|
|
$IMAGE_NAME = "aef-component-test"
|
|
$TAG = "0.0.9"
|
|
$OUTPUT_FILE = "aef-component-test.tar"
|
|
|
|
Write-Host "--- Docker 이미지 빌드 시작: ${IMAGE_NAME}:${TAG} ---" -ForegroundColor Cyan
|
|
docker build --no-cache -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
|
|
}
|