Docker PaaS – Deis Installation (Installing Deis on AWS)

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 **

  [ 
{
"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 been 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 been 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

Heads up! This alert needs your attention, but it's not super important.