This repo exposes the 2 endpoints:
- root endpoint (/) - this returns the hello world application.
- status endpoint (/status) - this returns the data in JSON format
- Travis
- docker-engine
- Node js
- Make
This project creates the docker images of the Node JS application and push it to Docker Hub using my credentials that are encrypted.
In order to use your own credentials, please run the following command and update the secret in .travis.yml
file
travis encrypt DOCKER_USERNAME=<your_username>
travis encrypt DOCKER_PASSWORD=<your_password>
This project exposes the local host endpoints. You may set $HOST
environment variable to specific domain/IP address or it is default to 127.0.0.1
The port exposed is 8080
Endpoints URL:
When you make any changes to the GIT Repo and push the code to master branch, the Travis CI pipeline is triggered which build the environment and deploy the application inside the docker container.