Coder Social home page Coder Social logo

gpt-bayes's Introduction

Deploying Your Application with Google Cloud Build

This repository provides the necessary configurations for deploying your application using Google Cloud Build.

Deploy NGINX Reverse Proxy

To deploy the NGINX Reverse Proxy, navigate to the nginx directory and execute the following commands:

cd nginx
gcloud builds submit

This process will build a Docker container, push it to Google Artifact Registry (GAR), and deploy it to Cloud Run.

Modify IP in NGINX Reverse Proxy

To update the IP address in the NGINX Reverse Proxy configuration, navigate to the nginx directory, edit the nginx.conf file, and modify the value of the IP in the proxy_pass directive:

cd nginx
# Open nginx.conf in your preferred text editor and update the IP
# Example: proxy_pass http://35.208.203.115:5000;

Build and Push Webapp Container to Google Artifact Registry (GAR)

Execute the following command to build and push the web application container to Google Artifact Registry:

gcloud builds submit

This process will build a Docker container, push it to Google Artifact Registry (GAR). This doesn't deploy to Google Compute Engine (GCE).

Deploy to Google Compute Engine (GCE)

List Container-Optimized OS (COS) image names:

gcloud compute images list --project cos-cloud --no-standard-images

Update container:

gcloud compute ssh gpt-bayes --zone us-central1-a --command 'docker system prune -f -a'

gcloud compute instances update-container gpt-bayes \
  --zone=us-central1-a \
  --container-image=us-central1-docker.pkg.dev/bayes-gpt/gpt-bayes/gpt-bayes:latest

Deploy:

gcloud compute instances create gpt-bayes \
 --machine-type e2-standard-4 \
 --boot-disk-size 20GB \
 --image image-name \
 --image-project cos-cloud \
 --zone us-central1 \
 --metadata container-image=your-container-image-name \
 --tags http-server \
 --firewall-create allow-http

gpt-bayes's People

Contributors

hamza-56 avatar twiecki avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

popcsev

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.