forked from boostcampwm-2024/web36-QLab
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: 로컬 개발 환경에서 도커이미지를 빌드하고 쿠버네티스에 올릴 수 있도록 수정
npm 명령으로 변경사항을 빌드하고 쿠버네티스에 적용할 수 있도록 스크립트 작성
- Loading branch information
Showing
6 changed files
with
50 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
$status = & minikube status --format="{{.Host}}" | ||
if ($status -eq "Running") { | ||
Write-Host "Minikube is already running." | ||
} else { | ||
& minikube start | ||
} | ||
|
||
& minikube docker-env | Invoke-Expression | ||
docker build -t local-qlab-apiserver -f ./BE/Dockerfile . | ||
docker build -t local-qlab-webserver -f ./FE/Dockerfile . | ||
|
||
kubectl delete -f ./kubernetes/apiServer-deployment.yaml | ||
kubectl delete -f ./kubernetes/webServer-deployment.yaml | ||
kubectl apply -f ./kubernetes/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/bash | ||
|
||
status=$(minikube status --format='{{.Host}}') | ||
if [ "$status" == "Running" ]; then | ||
echo "Minikube is already running." | ||
else | ||
minikube start | ||
fi | ||
|
||
eval $(minikube docker-env) | ||
docker build -t local-qlab-apiserver -f ./BE/Dockerfile . | ||
docker build -t local-qlab-webserver -f ./FE/Dockerfile . | ||
|
||
kubectl delete -f ./kubernetes/apiServer-deployment.yaml | ||
kubectl delete -f ./kubernetes/webServer-deployment.yaml | ||
kubectl apply -f ./kubernetes/ |