Code Monkey home page Code Monkey logo

cloudbuild-demo-aguacate's Introduction

whats-the-word

A dictionary!

Building, Deploying & Running

This is a straightfoward Python Flask application which can be run in several ways including locally via python, as a Docker container, or in Google Cloud Run.

via Python

From the root dir of the app:

$ python app.py

The app will be available on localhost port 8080 (e.g., http://0.0.0.0:8080)

via Dockerfile

From the root dir of the app:

$ docker build -t whats-the-word . && docker run --rm -p 8080:8080 -e PORT=8080 whats-the-word

The app will be available on localhost port 8080 (e.g., http://0.0.0.0:8080)

via Google Cloud Run (via Cloud Build)

Run on Google Cloud

- OR -

From the root dir of the app:

$ gcloud builds submit . --config=cloudbuild.yaml

The build results will provide a unique URL for the app.

deploy with Terraform to Google Cloud Run

Prerequisites:

  • The Cloud Build, Cloud Run, and Secret Manager APIs must be enabled, and Cloud Build must be granted permission to administrate Cloud Run (visit Cloud Build Service account permissions to grant this permission).
  • A Cloud Storage bucket for Terraform state must exist, named "$PROJECT_ID-tf-state".
  • The Terraform builder image must be available in your project:
    • Clone the builder
    • Run gcloud builds submit --substitutions=_TERRAFORM_VERSION="0.15.5",_TERRAFORM_VERSION_SHA256SUM="3b144499e08c245a8039027eb2b84c0495e119f57d79e8fb605864bb48897a7d"
  • The GitHub CLI builder image
    • Clone and build/push
    • Configure token secret as described in github builder README

cloudbuild-demo-aguacate's People

Contributors

davidstanke avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.