appcelerator-archive / amp

** THIS PROJECT IS STOPPED ** An open source CaaS for Docker, batteries included.
http://appcelerator.io
Apache License 2.0
81 stars 28 forks source link

Check local cluster creation prerequisites on Linux #1779

Closed bquenin closed 7 years ago

bquenin commented 7 years ago

This PR enables checking local cluster prerequisites on Linux.

How to test

$ ampmake clean build
$ sudo sysctl -w vm.max_map_count=26214
vm.max_map_count = 26214
$ amp cluster create
[user owner @ localhost:50101]
2017/12/05 19:23:58 vm.max_map_count value is too low. Got: 26214, expected: >= 262144. Please check the documentation on local cluster deployment prerequisites
Error: exit status 1