Skip to content

phriscage/beer-reviews

Repository files navigation

Beer Reviews

This service provides reviews about a single or collection of beers.

Prerequisites:

Setup:

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

Development:

Build and run the development environment as a Docker application locally. Make changes accordingly.

    TAG=dev make dev

Deployment:

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}

Deployment Updates:

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}

To-Do

  • automated builds

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages