This service provides reviews about a single or collection of beers.
- Docker installed and running
- Docker Compose installed
- Google Cloud Platform project created
- Google Cloud Platform SDK installed and configured
- Google Kubernetes Engine cluster created
Set your PROJECT_ID environment variable
export PROJECT_ID="$(gcloud config get-value project -q)"
Set your CLUSTER_NAME environment variable
export CLUSTER_NAME=beers-cluster
Set the credentials for the GKE cluster
gcloud container clusters get-credentials $CLUSTER_NAME
Build and run the development environment as a Docker application locally. Make changes accordingly.
TAG=dev make dev
Define the version number as the TAG environment variable and build the image.
export TAG=<VERSION NUMBER>
make
Tag and push the new image for GCR
docker tag <IMAGE ID> gcr.io/${PROJECT_ID}/beer-reviews-api:${TAG}
gcloud docker -- push gcr.io/${PROJECT_ID}/beer-reviews-api:${TAG}
Update the container image name/version for an existing deployment
kubectl set image deployment/reviews-api reviews-api=gcr.io/${PROJECT_ID}/beer-reviews-api:${TAG}
- automated builds