From fd885b9cfd9b6bc79bd78416197e5da1a0b72fc7 Mon Sep 17 00:00:00 2001 From: Shashwat-vaibhav Date: Sat, 23 Mar 2024 12:44:36 +0530 Subject: [PATCH] update dockerfile, skip gke deploy --- .github/workflows/deploy.yaml | 18 +++++++++--------- Dockerfile | 2 +- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index eadbbe9..e8e2fe5 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -45,12 +45,12 @@ jobs: docker build -t asia-south1-docker.pkg.dev/data-science-project-418009/dockerregistry/churn-prediction-service:${{ github.sha }} . docker push asia-south1-docker.pkg.dev/data-science-project-418009/dockerregistry/churn-prediction-service:${{ github.sha }} - - name: Configure kubectl - run: | - gcloud components install kubectl - gcloud components install gke-gcloud-auth-plugin - gcloud container clusters get-credentials autopilot-cluster-1 --zone asia-south1 --project data-science-project-418009 - - - name: Deploy to GKE - run: | - kubectl apply -f ./infra/kubernetes/resources.yaml + # - name: Configure kubectl + # run: | + # gcloud components install kubectl + # gcloud components install gke-gcloud-auth-plugin + # gcloud container clusters get-credentials autopilot-cluster-1 --zone asia-south1 --project data-science-project-418009 + + # - name: Deploy to GKE + # run: | + # kubectl apply -f ./infra/kubernetes/resources.yaml diff --git a/Dockerfile b/Dockerfile index f457d51..11b7d8d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,6 +4,6 @@ WORKDIR ./src/app/ RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py RUN python3 get-pip.py -# RUN pip3 install pandas flask torch xgboost google-cloud-storage +RUN pip3 install pandas flask torch xgboost google-cloud-storage CMD ["python3" "app.py"]