Skip to content

Repository files navigation

map-my-news

React app based on an open-source template that uses a map to help spread global news instantaneously.

How to deploy to GCP

  1. Create a container registry repository with the name map-my-news
  2. Build Docker image locally:
docker build . --tag map-my-news:v1.0.0
  1. Push the first image map-my-news:v1.0.0 built based on your Dockerfile to container registry
  2. Create a cloud run service based on the pushed map-my-news:v1.0.0 image
  3. Use the cloudbuild.yaml in this repo to re-deploy to cloud run:
gcloud builds submit --substitutions=_LOCATION="us-central1",_REPOSITORY="map-my-news",_IMAGE="map-my-news:v1.0.0" .
  1. Give cloud build permission to push to cloud run:
gcloud projects add-iam-policy-binding <project_id> \
  --member "serviceAccount:<numeric_project_id>@cloudbuild.gserviceaccount.com" \
  --role roles/run.admin
gcloud iam service-accounts add-iam-policy-binding \
  <numeric_project_id>-compute@developer.gserviceaccount.com \
  --member="serviceAccount:<numeric_project_id>@cloudbuild.gserviceaccount.com" \
  --role="roles/iam.serviceAccountUser"
  1. create a cloud build trigger based cloudbuild.yaml on release/push to branch, for continuous deployment and add substitutions for _LOCATION,_REPOSITORY, and _IMAGE.

About

Interactive map-based app to explore and discover global news in real-time

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages