-
Notifications
You must be signed in to change notification settings - Fork 367
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
GCP one click deployment #153
Conversation
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
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:buster
topython:3.11
.FROM
instruction now specifiesghcr.io/cohere-ai/terrarium:latest as terrarium
.ENV
instructions have been updated to set thePG_APP_HOME
andPYTHONPATH
variables.WORKDIR
instruction has been updated to set the working directory to/workspace/src/
.RUN
instruction has been modified to installnginx
andnodejs
usingapt-get
.COPY
instruction has been added to copy thegcp-entrypoint.sh
script to/sbin/
.RUN
instruction has been modified to installpoetry
with the option--without setup
.EXPOSE
instruction has been updated to expose ports4000/tcp
,8000/tcp
, and8090/tcp
.CMD
instruction 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
name
field has been changed from"one-click-demo"
to"toolkit-deploy"
.DATABASE_URI
field has been replaced withDATABASE_URL
, which now includes the description "URL for your Postgres database".COHERE_API_KEY
field has been added to theenv
object, which includes the description "Your Cohere API key".hooks
object has been added with aprebuild
command to configure Docker authentication usinggcloud
.options
object has been updated to include thememory
,cpu
,port
, andmax-instances
fields.docker_scripts/env-defaults
PYTHON_INTERPRETER_URL
export has been updated to uselocalhost:8080
as the default value.docker_scripts/functions
run_nginx
function has been added to start the Nginx proxy.run_backend
function has been updated to include theDATABASE_URL
variable.run_backend_poetry
function has been added to handle the backend installation and migration.run_frontend_proxy
function 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_guides
directory.