https://github.com/dmportella/rancher-docker-node
Express JS app build to run on RANCHER a docker management platform.
https://github.com/dmportella/rancher-docker-node
balancing docker docker-image dockerhub expressjs grunt health-check load load-testing rancher rancher-docker-node testing
Last synced: 8 months ago
JSON representation
Express JS app build to run on RANCHER a docker management platform.
- Host: GitHub
- URL: https://github.com/dmportella/rancher-docker-node
- Owner: dmportella
- License: mit
- Created: 2016-03-03T15:12:29.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2024-12-02T20:04:05.000Z (over 1 year ago)
- Last Synced: 2024-12-02T20:27:16.635Z (over 1 year ago)
- Topics: balancing, docker, docker-image, dockerhub, expressjs, grunt, health-check, load, load-testing, rancher, rancher-docker-node, testing
- Language: JavaScript
- Size: 11.7 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# rancher-docker-node
Express JS app build to run on kubernetes, RANCHER and aws EKS docker management platforms.
## DOCKERHUB
[](https://hub.docker.com/r/dmportella/expressjs/)
> Thank you for over 350,000+ downloads
[](https://ko-fi.com/U6U4K8YU0)
## ExpressJs
Simple espress js site with route to simulate site failure.
Built for testing *kubernetes*, *EKS* and *rancher* instances.
### Normal route
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`.
### 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 npm and grunt
> $ `./setup.sh`