Skip to content

Commit 55e1f94

Browse files
Enhance deployment: Add .dockerignore and optimize PowerShell script for cross-OS support
1 parent 9dc60a4 commit 55e1f94

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

App/frontend-app/.dockerignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules

Deployment/resourcedeployment.ps1

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -917,32 +917,32 @@ try {
917917
# 2. Build and push the images to Azure Container Registry
918918
# 2-1. Build and push the AI Service container image to Azure Container Registry
919919
#$acrAIServiceTag = "$($deploymentResult.AzContainerRegistryName).azurecr.io/$acrNamespace/aiservice"
920-
docker build ..\App\backend-api\. --no-cache -t $acrAIServiceTag
920+
docker build "../App/backend-api/." --no-cache -t $acrAIServiceTag
921921
docker push $acrAIServiceTag
922922

923923
# 2-2. Build and push the Kernel Memory Service container image to Azure Container Registry
924924
#$acrKernelMemoryTag = "$($deploymentResult.AzContainerRegistryName).azurecr.io/$acrNamespace/kernelmemory"
925-
docker build ..\App\kernel-memory\. --no-cache -t $acrKernelMemoryTag
925+
docker build "../App/kernel-memory/." --no-cache -t $acrKernelMemoryTag
926926
docker push $acrKernelMemoryTag
927927

928928
# 2-3. Build and push the Frontend App Service container image to Azure Container Registry
929929
#$acrFrontAppTag = "$($deploymentResult.AzContainerRegistryName).azurecr.io/$acrNamespace/frontapp"
930-
docker build ..\App\frontend-app\. --no-cache -t $acrFrontAppTag
930+
docker build "../App/frontend-app/." --no-cache -t $acrFrontAppTag
931931
docker push $acrFrontAppTag
932932

933933
#======================================================================================================================================================================
934934

935935
# 7.2. Deploy ClusterIssuer in Kubernetes for SSL/TLS certificate
936-
kubectl apply -f .\kubernetes\deploy.certclusterissuer.yaml
936+
kubectl apply -f "./kubernetes/deploy.certclusterissuer.yaml"
937937

938938
# 7.3. Deploy Deployment in Kubernetes
939-
kubectl apply -f .\kubernetes\deploy.deployment.yaml -n $kubenamespace
939+
kubectl apply -f "./kubernetes/deploy.deployment.yaml" -n $kubenamespace
940940

941941
# 7.4. Deploy Services in Kubernetes
942-
kubectl apply -f .\kubernetes\deploy.service.yaml -n $kubenamespace
942+
kubectl apply -f "./kubernetes/deploy.service.yaml" -n $kubenamespace
943943

944944
# 7.5. Deploy Ingress Controller in Kubernetes for external access
945-
kubectl apply -f .\kubernetes\deploy.ingress.yaml -n $kubenamespace
945+
kubectl apply -f "./kubernetes/deploy.ingress.yaml" -n $kubenamespace
946946

947947
# #####################################################################
948948
# # Data file uploading

0 commit comments

Comments
 (0)