Giter Site home page Giter Site logo

andrewkchoi / gcb-docker-compose Goto Github PK

View Code? Open in Web Editor NEW

This project forked from philmod/gcb-docker-compose

0.0 0.0 0.0 24 KB

Example on how to run integration tests on Google Container Builder, using docker-compose.

License: Apache License 2.0

JavaScript 93.59% Dockerfile 6.41%

gcb-docker-compose's Introduction

gcb-docker-compose

gcb-docker-compose demonstrates how to run integration tests on Google Cloud Build (GCB) using docker-compose.

This sample application is a simple counter gRPC server with add, reset, get, and watch methods. The application uses Redis for storage.

What is Cloud Build?

Cloud Build is a Google Cloud Platform service that uploads your source code and executes your build in a series of build steps. GCB can produce any artifacts produced by your application. For example, GCB can create Docker container images and push them to a private registry, such as Google Container Registry

Each build step is run in its container on the same local network. This allows build steps to communicate with each other and share data.

The ability to communicate and share data between build steps is used in this example repository: one build step runs the counter app and its dependencies in the background, and another build step runs the integration test steps against this running stack.

Understanding the build request

GCB builds are executed using build request files, YAML-formatted configuration files containing build steps.

The build steps in this example's build request file, cloudbuild.yaml, contain the following instructions:

  1. Locate, pull, and install the dependencies necessary to execute the build
  2. Run the unit tests
  3. Build the Docker image of the counter application
  4. In the background, start a stack with the newly-built application and its dependencies
  5. Run the integration tests against this running stack
  6. Push the newly-built and tested image to the registry

gcb-docker-compose's People

Contributors

philmod avatar ryanmcginnis avatar davidstanke 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.