Express JS app build to run on RANCHER a docker management platform.
Simple espress js site with route to simulate site failure.
Built for testing kubernetes and rancher instances.
Web site should be available on port 8080
when in docker if you are running the site individually it will be served on port 3000
.
GET /__health
{
version: "1.0.0",
status: "OK"
}
/__health/
/__health/throw500
/__health/timeout
/__health/killprocess
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
$
./setup.sh