Skip to content

Commit

Permalink
update dockerfile, skip gke deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
Shashwat-vaibhav committed Mar 23, 2024
1 parent dd010a3 commit fd885b9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

0 comments on commit fd885b9

Please sign in to comment.