Armada是微服务开发,部署,配置和发现的一个完整解决方案。
Armada不仅仅是个工具,而且定义了面向服务的转换和良好实践。
构建:
john@desktop$ armada build chat-servicePulling repository dockyard.armada.sh/microservice_python...(skipped)...Successfully built 3be42e99ca6ajohn@desktop$ armada push chat-servicePushing microservice chat-service to dockyard: dockyard.initech.com......(skipped)...Image has been pushed.运行:
admin@initech$ armada run chat-service --env production-awsRunning microservice chat-service from dockyard: dockyard.initech.com locally...Service is running in container fc6776c8f6da available at addresses: 192.168.1.43:49272 (80/tcp) 192.168.1.43:49271 (22/tcp)使用:
greg@ubuntu$ curl -X POST https://chat-service.initech.com/channel/chitchat -d '{"nick":"Greg","text":"Hello all!"}'{ "ok": true}
评论