GithubHelp home page GithubHelp logo

winbobob / knative-sample-app Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nimakaviani/knative-sample-app

0.0 2.0 0.0 35 KB

sample app for deployment to knative

Dockerfile 8.85% Go 14.90% Shell 76.24%

knative-sample-app's Introduction

Sample Docker App for Knative

Requirements

For the deployment and inspection of the Knative application discussed here, we are using the following tools:

The combination of ytt and kapp can be an alternative to a HELM chart+workflow management. While this project is pretty small for the purpose of the tool, it can be a good starting point.

Build the app

Build locally:

Run the following:

$ VERSION=<app-version> # this should be v1 or v2
$ ./hack/build.sh $VERSION 

Build the Docker image to push to a registry:

The Dockerfile builds the go app and puts it in the local registry. You can then upload it to dockerhub or your registry of choice.

$ REPO=<your-docker-registry>
$ VERSION=<app-version> # this should be v1 or v2
$ ./hack/dockerize.sh ${REPO} ${VERSION}
$ docker push ${REPO}:${VERSION}

Sample app + Knative

This application is meant to serve as a sample to demonstrate how Knative can be used as a serverless platform, how to apply revisions to a Knative serverless app, and how to achieve blue-green deployment and HPA. For the details of going through the tutorial, follow this tutorial document.

knative-sample-app's People

Contributors

nimakaviani avatar mattysweeps avatar

Watchers

James Cloos 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.