-
Notifications
You must be signed in to change notification settings - Fork 425
GCP one click deployment #153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GCP one click deployment #153
Conversation
tianjing-li
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is great - some very small asks
+ sync with main branch
+ sync with main branch
+ sync with main branch
+ sync with main branch
+ sync with main branch
+ sync with main branch
+ sync with main branch
+ sync with main branch
tianjing-li
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved- minor comments
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #153 +/- ##
=======================================
Coverage ? 78.42%
=======================================
Files ? 114
Lines ? 3662
Branches ? 0
=======================================
Hits ? 2872
Misses ? 790
Partials ? 0 ☔ View full report in Codecov by Sentry. |
"deployment: add GCP Cloud Run Button deployment"
This PR makes changes to the Dockerfile and adds a new Google Cloud Platform (GCP) deployment guide.
Dockerfile
buildpack-deps:bustertopython:3.11.FROMinstruction now specifiesghcr.io/cohere-ai/terrarium:latest as terrarium.ENVinstructions have been updated to set thePG_APP_HOMEandPYTHONPATHvariables.WORKDIRinstruction has been updated to set the working directory to/workspace/src/.RUNinstruction has been modified to installnginxandnodejsusingapt-get.COPYinstruction has been added to copy thegcp-entrypoint.shscript to/sbin/.RUNinstruction has been modified to installpoetrywith the option--without setup.EXPOSEinstruction has been updated to expose ports4000/tcp,8000/tcp, and8090/tcp.CMDinstruction has been updated to specify the entrypoint script asgcp-entrypoint.sh.New Files
gcp-entrypoint.sh: This script sets up the runtime environment and launches the necessary applications.nginx.conf: This file contains the configuration for the Nginx web server.app.json
namefield has been changed from"one-click-demo"to"toolkit-deploy".DATABASE_URIfield has been replaced withDATABASE_URL, which now includes the description "URL for your Postgres database".COHERE_API_KEYfield has been added to theenvobject, which includes the description "Your Cohere API key".hooksobject has been added with aprebuildcommand to configure Docker authentication usinggcloud.optionsobject has been updated to include thememory,cpu,port, andmax-instancesfields.docker_scripts/env-defaults
PYTHON_INTERPRETER_URLexport has been updated to uselocalhost:8080as the default value.docker_scripts/functions
run_nginxfunction has been added to start the Nginx proxy.run_backendfunction has been updated to include theDATABASE_URLvariable.run_backend_poetryfunction has been added to handle the backend installation and migration.run_frontend_proxyfunction has been added to start the frontend proxy.docs/deployment_guides/gcp_one_click_deployment.md
DATABASE_URL, providing the Cohere API key, and allowing access to git registries.docs/service_deployments.md
deployment_guidesdirectory.