Skip to content

Commit 08bc8e1

Browse files
committed
Updated README.md with some github-flavored markdown
1 parent a1cc87c commit 08bc8e1

1 file changed

Lines changed: 69 additions & 59 deletions

File tree

README.md

Lines changed: 69 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -46,16 +46,20 @@ Follow the steps below to install your own Deis platform on EC2. To complete the
4646

4747
### 1. Clone the Deis Repository
4848

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+
```
5153

5254
### 2. Configure the Chef Server
5355

5456
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.
5557

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+
```
5963

6064
### 3. Provision a Deis Controller
6165

@@ -67,70 +71,76 @@ The [Amazon EC2 API Tools](http://aws.amazon.com/developertools/351) will be use
6771

6872
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.
6973

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+
```
8692

8793
### 5. Create & Scale a Formation
8894

8995
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.
9096

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+
```
106114

107115
### 6. Deploy your Application
108116

109117
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).
110118

111-
$ git push deis master
112-
Counting objects: 146, done.
113-
Delta compression using up to 8 threads.
114-
Compressing objects: 100% (122/122), done.
115-
Writing objects: 100% (146/146), 21.54 KiB, done.
116-
Total 146 (delta 84), reused 47 (delta 22)
117-
Node.js app detected
118-
-----> Resolving engine versions
119-
Using Node.js version: 0.10.15
120-
Using npm version: 1.2.30
121-
...
122-
-----> Building runtime environment
123-
-----> Discovering process types
124-
Procfile declares types -> web
125-
126-
-----> Compiled slug size: 4.7 MB
127-
Launching... done, v2
128-
129-
-----> peachy-waxworks deployed to Deis
130-
http://ec2-54-214-143-104.us-west-2.compute.amazonaws.com ...
131-
132-
$ curl -s http://ec2-54-214-143-104.us-west-2.compute.amazonaws.com
133-
Powered by Deis!
119+
```bash
120+
$ git push deis master
121+
Counting objects: 146, done.
122+
Delta compression using up to 8 threads.
123+
Compressing objects: 100% (122/122), done.
124+
Writing objects: 100% (146/146), 21.54 KiB, done.
125+
Total 146 (delta 84), reused 47 (delta 22)
126+
Node.js app detected
127+
-----> Resolving engine versions
128+
Using Node.js version: 0.10.15
129+
Using npm version: 1.2.30
130+
...
131+
-----> Building runtime environment
132+
-----> Discovering process types
133+
Procfile declares types -> web
134+
135+
-----> Compiled slug size: 4.7 MB
136+
Launching... done, v2
137+
138+
-----> peachy-waxworks deployed to Deis
139+
http://ec2-54-214-143-104.us-west-2.compute.amazonaws.com ...
140+
141+
$ curl -s http://ec2-54-214-143-104.us-west-2.compute.amazonaws.com
142+
Powered by Deis!
143+
```
134144

135145
## Credits
136146

0 commit comments

Comments
 (0)