A demo of development & production environments implemented via gcloud CLI

Transcript & slides are below. Please unmute this demo video to hear it with sound. At full screen the video's resolution is better.

DEPP.434-55.DV7_default.mp4

transcript for slide 7.1 hello everyone thank you for watching this video that quickly demos using local terminal and git for app development and Google app engine for production. and finally a trigger linkage between them for CICD. we start with the basics: app, main, requirements, and make file.

Development and Production Environments

Steve Depp MSDS 434 section 55

Setup Continuous Delivery on GCP Platform with Google App Engine and Cloud Build. (This implements via gcloud CLI the architecture demo'd via GCP console by Noah Gift here).

Development: Hello_world flask app with the usual suspects:.

  • app.yaml
  • main.py
  • requirements.txt
  • Makefile

dev-prod-demo

Backup File

transcript for slide 7.2 import dependencies.

Development: Hello_world flask app

Import dependencies —> make install

dev-pred-denol

transcript for slide 7.3 test locally on a development server. here we call app create before calling main.py with python but this could have gone in any order since app create still is a local development environment command.

Development: Hello_world flask app

Test locally with development server locally

Successt The app is now created  Please use 'geloud app deploy' to deploy your

©127 0 0 18080

transcript for slide 7.4 we improve the code locally and re test. we can see logs change here in light blue as we hit the end point.

Development: Hello_world flask app

Improve code and test locally

an for a project is irreversible and

I like to make Al apps

transcript for slide 7.5 deploy to production and hit the production server at Google.

Deploy to Google Cloud - production

Services

httpsdev-prod-demo uc r ap X

transcript for slide 7.6 future development changes would be pushed to a development branch and then merged with master. in this example any push from local terminal to GitHub master triggers a google app redeployment which is ...

CICD

Automating GitHub commits to GCP deploy
= automatic production deployment

dev-prod-demo

transcript for slide 7.7 ... true cicd. this is an example of that occurring, but ...

CICD

Development environment stages in GitHub —> merges deploy to production end user automatically

def bob()

20201029001924

transcript for slide 7.8 ... there was and still is a wrinkle with permissions. thank you for watching.

Wrinkle:

CICD permissioning needs ironing out.

Build details - Cloud Build - de