restbus
restbus copied to clipboard
Dockerize Restbus & add package-lock
Description:
- Dockerize Restbus so that it can easily be individually deployed.
- Rationales:
- While Restbus can easily be used from an existing Node app, if one wants to customize it without having to redeploy the apps using it, dockerizing it and running it in the same cluster or machine as the services using it is an easy and maintainable solution.
- Apps that aren't written in JS can use Restbus as it can be easily deployed.
- Add package-lock as to lock in dependencies in NPM Package locks were introduced in NPM 5. It's recommended that it be checked in. https://docs.npmjs.com/files/package-lock.json
Tests: Try it out using:
-
docker build -t restbus .
-
docker run -p 3535:3535 restbus:latest