Docker PaaS - Deis 安装(Installing Deis on AWS)

原创 2015年01月16日 22:01:17
1. Get the source code
$ git clone https://github.com/deis/deis.git
$ cd deis

2. Generate SSH key
$ssh-keygen -q -t rsa -f ~/.ssh/deis -N ' ' -C deis

3. Generate a new discovery URL
$ make discovery-url

4.Install the aws client
$ pip install awscli
$ pip install pyyaml

5. Configure the aws client
$ aws configure

AWS Access Key ID [None]: ***************
AWS Secret Access Key [None]:************************
Default region name [None]: us-west-1
Default output format [None]:

6. Upload the keys to aws
$ ssh-keygen -q -t rsa -f ~/.ssh/deis -N '' -C deis 
$ aws ec2 import-key-pair --key-name deis --public-key-material file://~/.ssh/deis.pub

7. Set the number of instances
$ export DEIS_NUM_INSTANCES=5

8. Customize  cloudformation.json (Optional)
[
   {
       "ParameterKey":    "KeyPair",
       "ParameterValue":  "deis"
   }
]

9. Run the provision Script
$ cd contrib/ec2
$ ./provision-ec2-cluster.sh { "StackId":"arn:aws:cloudformation:ap-southeast-1:413516096905:stack/deis/9699ec20-c297-11e3-89eb-50fa01cd7096"}

Your Deis cluster has successfully deployed.
Please wait for all instances to come up as "running" before continuing.

10. Configure DNS (PS: I configure a A record for deis.mycompany.com.)
11. Install Deisctl

$ curl -sSL http://deis.io/deisctl/install.sh | sh -s 1.2.1 
$ ln -fs $PWD/deisctl /usr/local/bin/deisctl

12. Install Deis Platform

$ deisctl --version
1.2.1

$ eval `ssh-agent -s`
$ ssh-add ~/.ssh/deis
$ export DEISCTL_TUNNEL="deis.mycompany.com"
$ deisctl config platform set sshPrivateKey=~/.ssh/deis
$ deisctl config platform set domain=mycompany.com
$ deisctl install platform

You will see the output like following:

●■
■●Installing Deis...
■●

Scheduling data containers......

Deis installed.

Please run `deisctl start platform` to boot up Deis.

Login in AWS and 5 instance has be launched.


$ deisctl start platform start platform
$ deisctl list

You will see the output like following:

UNIT MACHINE LOAD ACTIVE SUB
deis-builder.service ad04b506.../10.21.2.136 loaded active running
deis-cache.service a6b009f5.../10.21.2.138 loaded active running
deis-controller.service ad04b506.../10.21.2.136 loaded active running
deis-database.service f2fc4fb0.../10.21.1.152 loaded active running
deis-logger.service a6b009f5.../10.21.2.138 loaded active running
deis-logspout.service 7aa4377f.../10.21.1.151 loaded active running
deis-logspout.service 860a1cd3.../10.21.2.137 loaded active running
deis-logspout.service a6b009f5.../10.21.2.138 loaded active running
deis-logspout.service ad04b506.../10.21.2.136 loaded active running
deis-logspout.service f2fc4fb0.../10.21.1.152 loaded active running
deis-publisher.service 7aa4377f.../10.21.1.151 loaded active running
deis-publisher.service 860a1cd3.../10.21.2.137 loaded active running
deis-publisher.service a6b009f5.../10.21.2.138 loaded active running
deis-publisher.service ad04b506.../10.21.2.136 loaded active running
deis-publisher.service f2fc4fb0.../10.21.1.152 loaded active running
deis-registry@1.service 7aa4377f.../10.21.1.151 loaded active running
deis-router.service 7aa4377f.../10.21.1.151 loaded active running
deis-router@1.service a6b009f5.../10.21.2.138 loaded active running
deis-router@2.service ad04b506.../10.21.2.136 loaded active running
deis-router@3.service f2fc4fb0.../10.21.1.152 loaded active running
deis-store-daemon.service 7aa4377f.../10.21.1.151 loaded active running
deis-store-daemon.service 860a1cd3.../10.21.2.137 loaded active running
deis-store-daemon.service a6b009f5.../10.21.2.138 loaded active running
deis-store-daemon.service ad04b506.../10.21.2.136 loaded active running
deis-store-daemon.service f2fc4fb0.../10.21.1.152 loaded active running
deis-store-gateway.service 7aa4377f.../10.21.1.151 loaded active running
deis-store-metadata.service 7aa4377f.../10.21.1.151 loaded active running
deis-store-metadata.service 860a1cd3.../10.21.2.137 loaded active running
deis-store-metadata.service a6b009f5.../10.21.2.138 loaded active running
deis-store-metadata.service ad04b506.../10.21.2.136 loaded active running
deis-store-metadata.service f2fc4fb0.../10.21.1.152 loaded active running
deis-store-monitor.service 7aa4377f.../10.21.1.151 loaded active running
deis-store-monitor.service 860a1cd3.../10.21.2.137 loaded active running
deis-store-monitor.service  a6b009f5.../10.21.2.138 loaded active running
deis-store-monitor.service ad04b506.../10.21.2.136 loaded active running
deis-store-monitor.service f2fc4fb0.../10.21.1.152 loaded active running
deis-store-volume.service 7aa4377f.../10.21.1.151 loaded active running
deis-store-volume.service 860a1cd3.../10.21.2.137 loaded active running
deis-store-volume.service a6b009f5.../10.21.2.138 loaded active running
deis-store-volume.service ad04b506.../10.21.2.136 loaded active running
deis-store-volume.service f2fc4fb0.../10.21.1.152 loaded active running

Docker PaaS - Deis 使用( Using Deis)

docker-PaaS - Using Deis
  • knight_zhen
  • knight_zhen
  • 2015-01-16 22:58:36
  • 660

Flynn初探:基于Docker的PaaS平台

[Flynn](https://flynn.io/)是一个开源的PaaS平台,可自动构建部署任何应用到Docker容器集群上运行,其功能特性与组件设计大量参考了传统的PaaS平台[Heroku](ht...
  • TragicJun
  • TragicJun
  • 2014-11-19 01:04:01
  • 8800

部署:持续集成(CI)与持续交付(CD)——《微服务设计》读书笔记

一.CI(Continuous Integration)简介    CI规则1:尽量频繁地把代码签入到分支中以进行集成   CI规则2:不光要对语法进行验,也要提供一系列的自动化来验证   CI...
  • sD7O95O
  • sD7O95O
  • 2017-04-27 07:24:24
  • 72

【Redis缓存机制】2.Redis安装和简单使用

(1)安装Redis Redis目前只支持Linux系统,因为开发此软件的创始者认为,Redis是为后台数据服务的,所以认为该软件使用在纯净的服务环境下,而不是应用型操作系统下,而Linux作为服务器...
  • u013517797
  • u013517797
  • 2016-11-16 09:05:21
  • 4615

vagrant plugin install vagrant-triggers

  • 2015年11月26日 08:27
  • 793KB
  • 下载

在AWS上创建linux系统EC2使用docker

最近研究将金蝶eas安装在docker容器中运行,AWS上linux系统是自带了docker的,所以我们可以是很方便的使用. 在这里我们选择的Cent OS系统的centos7.0-offical-b...
  • u012891504
  • u012891504
  • 2016-06-17 14:10:13
  • 3431

Docker 与 PAAS

docker 与 PAAS平台
  • raindaywhu
  • raindaywhu
  • 2016-07-28 17:14:39
  • 3584

Docker解析及轻量级PaaS平台演练(一)--Docker简介与安装

Container技术:传统的虚拟化技术: 通过对硬件层模拟,从而实现了能够在一套硬件上面运行多个操作系统,因为通过硬件虚拟化,使得操作系统认为在它之下就是硬件层但是实际情况是这样的:虚拟机中的OS...
  • qq1010885678
  • qq1010885678
  • 2015-05-31 19:37:13
  • 3061

中间件和微服务,Docker以及原生云架构的关系

IT世界的技术更新非常迅速。一年前我曾写过一篇关于:微服务是否是企业服务总线和其他中间件的死亡魔法。本文章是之前文章的后续以及关于微服务、容器和原生云架构的中间件关系讨论的更新。各种规模的企业正在以令...
  • wujiaohua888168
  • wujiaohua888168
  • 2016-06-26 22:56:51
  • 1955

基于Docker及Kubernetes技术构建容器云(PaaS)平台概述

本文个人博客地址为:http://www.huweihuang.com/article/kubernetes/paas-based-on-docker&kubernetes/本文个人博...
  • huwh_
  • huwh_
  • 2017-07-23 17:39:38
  • 4552
收藏助手
不良信息举报
您举报文章:Docker PaaS - Deis 安装(Installing Deis on AWS)
举报原因:
原因补充:

(最多只允许输入30个字)