Skip to content
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

docs: Remove reference to Container Registry and redundant option #218

Merged
merged 1 commit into from
Sep 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 3 additions & 17 deletions src/frontend/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,29 +26,15 @@ In the project directory, you can run:
VITE_API_SERVER=<BACKEND_URI>
```

#### Option 1. Build and deploy to Google Cloud Run in one step
#### Build and deploy to Google Cloud Run in one step

```
gcloud run deploy image-processing-frontend --source . --region=us-central1 --cpu=2 --memory=8G --timeout=3600 --allow-unauthenticated
```

This packages the frontend into an image using the Dockerfile and saves it in the Google Container Registry. It then deploys the image right away.
This packages the frontend into an image using the Dockerfile and saves it in the Artifact Registry. It then deploys the image right away.

#### Option 2. Build a container using Google Cloud Build
Copy link
Contributor Author

@NimJay NimJay Sep 16, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm removing option 2. Users can just use option 1 (gcloud run deploy ... --source) with the --source argument to build and deploy in a single step.


```
gcloud builds submit --tag gcr.io/your-project-name/image-processing-frontend
```

This uses the Dockerfile to build the frontend container and save it in the Google Container Registry.

This can then be deployed to Cloud Run using the following command:

```
gcloud run deploy image-processing-frontend --image gcr.io/your-project-name/image-processing-frontend --region=us-central1 --platform=managed --cpu=2 --memory=8G --timeout=3600 --allow-unauthenticated --min-instances=0
```

See [Deploy a Python service to Cloud Run](https://cloud.google.com/run/docs/quickstarts/build-and-deploy/deploy-python-service) for more information.
See [Deploy from source code](https://cloud.google.com/run/docs/deploying-source-code) and [Deploy a Python service to Cloud Run](https://cloud.google.com/run/docs/quickstarts/build-and-deploy/deploy-python-service) for more information.

### Development

Expand Down
Loading