You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+69-59Lines changed: 69 additions & 59 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -46,16 +46,20 @@ Follow the steps below to install your own Deis platform on EC2. To complete the
46
46
47
47
### 1. Clone the Deis Repository
48
48
49
-
$ git clone https://github.com/opdemand/deis.git
50
-
$ cd deis
49
+
```bash
50
+
$ git clone https://github.com/opdemand/deis.git
51
+
$ cd deis
52
+
```
51
53
52
54
### 2. Configure the Chef Server
53
55
54
56
Deis requires a Chef Server. [Sign up for a free Hosted Chef account](https://getchef.opscode.com/signup) if you don’t have one. You’ll also need a Ruby runtime with RubyGems in order to install the required Ruby dependencies.
55
57
56
-
$ bundle install # install ruby dependencies
57
-
$ berks install # install cookbooks into your local berkshelf
58
-
$ berks upload # upload cookbooks to the chef server
58
+
```bash
59
+
$ bundle install # install ruby dependencies
60
+
$ berks install # install cookbooks into your local berkshelf
61
+
$ berks upload # upload cookbooks to the chef server
62
+
```
59
63
60
64
### 3. Provision a Deis Controller
61
65
@@ -67,70 +71,76 @@ The [Amazon EC2 API Tools](http://aws.amazon.com/developertools/351) will be use
67
71
68
72
Install the Deis client using [Pip](http://www.pip-installer.org/en/latest/installing.html). Registration will discover SSH keys automatically and use the [standard environment variables](http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/SettingUp_CommandLine.html#set_aws_credentials_linux) to configure the EC2 provider.
69
73
70
-
$ sudo pip install deis
71
-
$ deis register http://my-deis-controller.fqdn
72
-
username: myuser
73
-
password:
74
-
email: myuser@example.com
75
-
Registered myuser
76
-
Logged in as myuser
77
-
78
-
Found the following SSH public keys:
79
-
1) id_rsa.pub
80
-
Which would you like to use with Deis? 1
81
-
Uploading /Users/myuser/.ssh/id_rsa.pub to Deis... done
82
-
83
-
Found EC2 credentials: AKIAJTVXXXXXXXXXXXXX
84
-
Import these credentials? (y/n) : y
85
-
Uploading EC2 credentials... done
74
+
```bash
75
+
$ sudo pip install deis
76
+
$ deis register http://my-deis-controller.fqdn
77
+
username: myuser
78
+
password:
79
+
email: myuser@example.com
80
+
Registered myuser
81
+
Logged in as myuser
82
+
83
+
Found the following SSH public keys:
84
+
1) id_rsa.pub
85
+
Which would you like to use with Deis? 1
86
+
Uploading /Users/myuser/.ssh/id_rsa.pub to Deis... done
87
+
88
+
Found EC2 credentials: AKIAJTVXXXXXXXXXXXXX
89
+
Import these credentials? (y/n) : y
90
+
Uploading EC2 credentials... done
91
+
```
86
92
87
93
### 5. Create & Scale a Formation
88
94
89
95
Find an application you’d like to deploy, or clone [an example app](https://github.com/opdemand/example-nodejs-express). Change into the application directory and use `deis create` to initialize a new formation in a specific EC2 region. Use the `deis layers:scale` command to provision nodes that will be dedicated to this formation.
90
96
91
-
$ cd <my-application-repo>
92
-
$ deis create --flavor=ec2-us-west-2
93
-
Creating formation... done, created peachy-waxworks
94
-
Git remote deis added
95
-
96
-
Creating runtime layer... done
97
-
Creating proxy layer... done
98
-
99
-
Use deis layers:scale proxy=1 runtime=1 to scale a basic formation
100
-
101
-
$ deis layers:scale proxy=1 runtime=1
102
-
Scaling layers... but first, coffee!
103
-
...done in 232s
104
-
105
-
Use `git push deis master` to deploy to your formation
97
+
```bash
98
+
$ cd<my-application-repo>
99
+
$ deis create --flavor=ec2-us-west-2
100
+
Creating formation... done, created peachy-waxworks
101
+
Git remote deis added
102
+
103
+
Creating runtime layer... done
104
+
Creating proxy layer... done
105
+
106
+
Use deis layers:scale proxy=1 runtime=1 to scale a basic formation
107
+
108
+
$ deis layers:scale proxy=1 runtime=1
109
+
Scaling layers... but first, coffee!
110
+
...done in 232s
111
+
112
+
Use `git push deis master` to deploy to your formation
113
+
```
106
114
107
115
### 6. Deploy your Application
108
116
109
117
Use `git push deis master` to deploy your application. Deis will automatically deploy Docker containers and configure Nginx proxies to route requests to your application. To learn more, use `deis help` or browse [the documentation](http://docs.deis.io).
0 commit comments