Users can call the script with "-f" or "--follow" in order to follow the
latest lines (like with system tool "tail -f"), of not provide this
argument to obtain the whole contents of the logs.
docker-compose uses "--tail all" by default, which prints the complete
logs before starting to follow new lines. This becomes a problem when
the service has been running for a lot of time and there are thousand of
lines.
Use "--tail 10" to mimic the behavior of the "tail" program, which shows
the latest 10 lines by default.
* ALWAYS quote variable expansions (except in for loops)
* Use "-n" instead of "! -z"
* Fix bad redirection (|) when an OR (||) was intended
* Don't expand variables in printf format string (pass as argument)
* ALWAYS quote variable expansions (except in for loops)
* Avoid useless cat:
cat file | grep pattern ==> grep pattern file
* Did I mention to ALWAYS quote variable expansions?
Always use ShellCheck to write shell scripts!
https://marketplace.visualstudio.com/items?itemName=timonwong.shellcheck
- Move deployment stuff of openvidu-ce from https://github.com/OpenVidu/openvidu-cloud-devops
- Move deployment stuff of openvidu-pro from https://github.com/OpenVidu/openvidu-pro-clustering
- Remove readmes to avoid confusions of official documentation
- Update installation scripts to use this repo
- Better folder structure:
- docker-compose -> Include docker-compose files for deployments
- docker -> Include docker images
- aws -> Cloudformation related stuff for aws.