Skip to content

Latest commit

 

History

History
68 lines (38 loc) · 1.99 KB

DEVELOPMENT.md

File metadata and controls

68 lines (38 loc) · 1.99 KB

Beer App - Development

This documentation provides details for how to extend the Beer App interface and API.

These instructions to setup a k8s environment are via the gcloud SDK CLI. You can also setup via the GCP console. The k8s environment is only for development and testing using Skaffold

Set your CLUSTER_NAME environment variable

    export CLUSTER_NAME=skaffold

Create a GKE cluster via gcloud CLI and verify the instances are created:

    gcloud container clusters create $CLUSTER_NAME --cluster-version=1.10
    gcloud compute instances list

To authenticate to Container Registry, use gcloud as a Docker credential helper. To do so, run the following command: Enable

    gcloud auth configure-docker

Setup Backend:

Create the application with Skaffold

Beer API development

    skaffold dev

Beer API Development with all service dependencies

    skaffold dev -p test

Setup Frontend:

Create the application with Skaffold

Beer APP Frontend development

    skaffold -f skaffold-frontend.yaml dev

Deployment:

Deploy the application with Skaffold.

export a TAG environment variable and run the skaffold run -t <TAG> command.

The TAG may vary between beer-api and beer-app-frontend development/deployment

    export TAG=dev

Beer API deployment

    skaffold run -t $TAG

Beer APP Frontend deployment

    skaffold -f skaffold-frontend.yaml run -t $TAG

To-Do

  • automated builds