Coder Social home page Coder Social logo

roland0 / hello-world-app Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rawmind0/hello-world-app

0.0 1.0 0.0 44 KB

Hello world app for training

License: Apache License 2.0

Makefile 21.56% Go 42.12% Dockerfile 7.28% Shell 19.77% Smarty 9.28%

hello-world-app's Introduction

Hello world app

hello-world-app web service in 8080 port used for training and/or testing. It simply shows data about k8s deployment info and http request headers.

It also provides a /version uri to get the version of the app.

Building from Source

To build rawmind/hello-world-app docker image, run make app.

To use a custom Docker repository, do DOCKER_USER=custom make image, which produces a custom/hello-world-app image.

Running Docker Image

Docker

Run docker run -td -p <PORT>:8080 rawmind/hello-world-app.

Generating K8s manifests

K8S manifests are generated under /k8s folder. App fqdn for ingress (default hello-world-app.test.dev) and app replica (default: 2) can be overriden setting SERVICE_FQDN and SERVICE_REPLICA env variables.

Run make k8s_manifests

Generating helm chart

Helm chart is generated under /chart folder. App fqdn for ingress (default hello-world-app.test.dev) and app replica (default: 2) can be overriden setting SERVICE_FQDN and SERVICE_REPLICA env variables.

Run make chart

Deployment

Run make k8s_deploy

Service

Run make k8s_service

Ingress

Run make k8s_ingress

License

Copyright (c) 2014-2018 Rancher Labs, Inc.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

hello-world-app's People

Contributors

rawmind0 avatar

Watchers

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