My try to deploy a cloud run service with langchain and unstructured.
- Set an environment variable with your GCP Project ID:
export GOOGLE_CLOUD_PROJECT=<PROJECT_ID>
- Use a Buildpack to build the container:
gcloud builds submit --pack image=gcr.io/${GOOGLE_CLOUD_PROJECT}/helloworld
docker run --rm gcr.io/${GOOGLE_CLOUD_PROJECT}/helloworld
pytest
Note: you may need to install pytest
using pip install pytest
.
# Set an environment variable with your GCP Project ID
export GOOGLE_CLOUD_PROJECT=<PROJECT_ID>
# Deploy to Cloud Run
gcloud run deploy helloworld --source .
For more details on how to work with this sample read the Python Cloud Run Samples README