kubernetes-docker-golang

command module
v0.0.0-...-62f3948 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 12, 2016 License: MIT Imports: 8 Imported by: 0

README

kubernetes-docker-golang

Simple golang web site using mux to run on KUBERNETES or RANCHER and other docker management platforms.

Build Status

DOCKERHUB

dockeri.co

GOLANGWEB

Simple golang site with route to simulate site failure.

Built for testing kubernetes and rancher instances.

Normal route

Web site should be available on port 8080.

Health check
GET /__health
{
version: "1.0.0",
status: "OK"
}
routes
  • Health check url.: /__health/
  • Set to throw 500: /__health/throw500
  • Set to time out: /__health/timeout
  • Set kill the process: /__health/killprocess

Building

The shell file build.sh will run npm install, install and run grunt and it will build and run the docker image.

$ ./build.sh

Builds docker image and tags it.

$ ./build-image.sh

  • Installs godep and other setup things

$ ./setup.sh

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Godeps
_workspace/src/github.com/gorilla/context
Package context stores values shared during a request lifetime.
Package context stores values shared during a request lifetime.
_workspace/src/github.com/gorilla/mux
Package mux implements a request router and dispatcher.
Package mux implements a request router and dispatcher.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL