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

[UX enhancements] amp cluster create #1225

Closed JosephGJ closed 7 years ago

JosephGJ commented 7 years ago

ref: #1216

amp cluster create command improvements to the user experience:

Example output:

$ amp cluster create
[localhost:50101]
Creating cluster on localhost using local swarm with 1 manager(s) and 0 worker(s).

Pulling Images:
Image appcelerator/amp-bootstrap:0.10.1 has been successfully pulled.

Deploying Cluster:
Manager node(s) ready.
No worker node.

Cluster has been successfully created.

Deploying AMP:

Pulling Images:
Image appcelerator/amp-ui:0.10.1 has been successfully pulled.
Image appcelerator/agent:0.10.1 has been successfully pulled.
Image appcelerator/ampbeat:0.10.1 has been successfully pulled.
Image appcelerator/amplifier-gateway:0.10.1 has been successfully pulled.
Image appcelerator/amplifier:0.10.1 has been successfully pulled.
Image appcelerator/elasticsearch-amp:5.3.2 has been successfully pulled.
Image appcelerator/amp-nats-streaming:v0.3.8 has been successfully pulled.
Image appcelerator/etcd:3.1.6 has been successfully pulled.
Image appcelerator/kibana:5.3.1 has been successfully pulled.
Starting services:
Service amplifier has been successfully started.    
Service amplifier-gateway has been successfully started.
Service agent has been successfully started.
Service elasticsearch has been successfully started.
Service nats has been successfully started.
Service etcd has been successfully started.
Service ampbeat has been successfully started.
Service kibana has been successfully started.
Service proxy has been successfully started.

AMP has been successfully deployed.
See `amp user signup --help` in order to create your first user.
Read the documentation here https://github.com/appcelerator/amp/tree/master/docs. 
The web portal is accessible at https://ui.local.appcelerator.io/
JosephGJ commented 7 years ago

Add log levels to deploy + bootstrap script outputs so that they can be filtered via some "log level" (similar to infrakit). These can then be synchronized with the CLI errors.

Infrakits log levels (each step up includes the previous logs).

for example:

$ amp cluster create --provider=docker --log=4
[DEBUG]: creating Docker volume "some volume id" with the configuration data
[INFO]: Bootstrapping cluster on docker
[WARN]: warning: force start, removing Docker volume "some volume id"
[ERROR]: asking for -5 manager(s) and -1488 worker(s), abort

There needs to be a better definition between what a critical error is and what a regular error is

JosephGJ commented 7 years ago

amp cluster command ux enhancements are going to be put on hold whilst the method of cluster deployment is being modified to use golangs AWS sdk.