Skip to content

Commit 8f70ad9

Browse files
author
Gabriel Monroy
committed
docs(readme): cleanup readme after deisctl integration
docs(*): replace DockerHub with Docker Hub doc(readme): change to approximately docs(readme): replace sed with make discovery-url
1 parent 67ad9ae commit 8f70ad9

3 files changed

Lines changed: 33 additions & 37 deletions

File tree

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ dev-registry: check-docker
1616
@echo " export DEIS_REGISTRY=`boot2docker ip 2>/dev/null`:5000"
1717

1818
discovery-url:
19-
sed -i .orig -e "s,# discovery: https://discovery.etcd.io/12345693838asdfasfadf13939923,discovery: $$(curl -q -w '\n' https://discovery.etcd.io/new)," contrib/coreos/user-data
19+
sed -i .orig -e "s,# discovery: https://discovery.etcd.io/12345693838asdfasfadf13939923,discovery: $$(curl -s -w '\n' https://discovery.etcd.io/new)," contrib/coreos/user-data
2020

2121
build: check-docker
2222
@$(foreach C, $(COMPONENTS), $(MAKE) -C $(C) build || exit 1;)

README.md

Lines changed: 31 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,19 @@ Trying out Deis? Continue following these instructions for a local installation
1717
## Install prerequisites
1818

1919
* Due to its nature as a distributed system, we strongly recommend using Deis with a minimum of 3 nodes even for local development and testing
20-
* The Deis containers will consume approximately 5 GB of RAM across the cluster. Please be sure you have sufficient free memory before proceeding.
20+
* The Deis "control plane" containers will consume approximately 2 GB of RAM across the cluster. Please be sure you have sufficient free memory before proceeding.
2121
* Install [Vagrant v1.6+](http://www.vagrantup.com/downloads.html) and [VirtualBox](https://www.virtualbox.org/wiki/Downloads)
2222

2323
Note for Ubuntu users: the VirtualBox package in Ubuntu (as of the last known release for 14.04) has some issues when running in RAM-constrained environments. Please install the latest version of VirtualBox from Oracle's website.
2424

2525
## Configure Discovery
2626

27-
Each time you spin up a new CoreOS cluster, you **must** provide a new [discovery service URL](https://coreos.com/docs/cluster-management/setup/cluster-discovery/) in the [CoreOS user-data](https://coreos.com/docs/cluster-management/setup/cloudinit-cloud-config/) file. This URL allows hosts to find each other and perform initial leader election.
27+
Each time you spin up a new CoreOS cluster, you **must** provide a new [discovery service URL](https://coreos.com/docs/cluster-management/setup/cluster-discovery/) in the [CoreOS user-data](https://coreos.com/docs/cluster-management/setup/cloudinit-cloud-config/) file. This URL allows hosts to find each other and perform leader election.
2828

2929
Automatically generate a fresh discovery URL with:
3030

3131
```console
32-
$ sed -i .orig -e "s,# discovery: https://discovery.etcd.io/12345693838asdfasfadf13939923,discovery: $(curl -q -w '\n' https://discovery.etcd.io/new)," contrib/coreos/user-data
32+
$ make discovery-url
3333
```
3434

3535
or manually edit [contrib/coreos/user-data](contrib/coreos/user-data) and add a unique discovery URL generated from <https://discovery.etcd.io/new>.
@@ -63,16 +63,16 @@ Export `DEISCTL_TUNNEL` so you can connect to one of the VMs using the `deisctl`
6363
$ export DEISCTL_TUNNEL=172.17.8.100
6464
```
6565

66-
Use `deisctl install platform` to install all Deis components across the cluster, then `deisctl start platform` to start them. This can take some time - the registry service will pull and prepare a large Docker image, the builder service will download the Heroku cedar stack. Grab some more coffee!
66+
Use `deisctl install platform` to install all Deis components across the cluster, then `deisctl start platform` to start them.
6767

6868
```console
6969
$ deisctl install platform
7070
$ deisctl start platform
7171
```
7272

73-
Your Deis installation should now be accessible at `deis.local3.deisapp.com`.
73+
This can take some time - the **builder** and **registry** components must download and install the beefy Heroku cedar stack. Grab some more coffee!
7474

75-
For clusters on other platforms see our guide to [Configuring DNS](http://docs.deis.io/en/latest/installing_deis/configure-dns/).
75+
Your Deis platform should be accessible at `deis.local3.deisapp.com`. For clusters on other platforms see our guide to [Configuring DNS](http://docs.deis.io/en/latest/installing_deis/configure-dns/).
7676

7777
## Install the Deis Client
7878

@@ -97,7 +97,7 @@ $ deis register http://deis.local3.deisapp.com
9797
$ deis keys:add
9898
```
9999

100-
Use `deis keys:add` to add your SSH public key for `git push` access.
100+
Use `deis keys:add` to add your SSH public key for `git push` access -- normally `$HOME/.ssh/id_rsa.pub`.
101101

102102
## Initialize a Cluster
103103

@@ -117,12 +117,24 @@ The `dev` cluster will be used as the default cluster for future `deis` commands
117117

118118
# Usage
119119

120-
## Clone an example application or use an existing one
121-
Example applications can be cloned from the Deis GitHub [organization](https://github.com/deis).
122-
Commonly-used example applications include [Helloworld (Dockerfile)](https://github.com/deis/helloworld), [Go](https://github.com/deis/example-go), and [Ruby](https://github.com/deis/example-ruby-sinatra).
120+
Deis supports 3 deployment workflows:
121+
122+
* Heroku Buildpacks via `git push` -- Learn more about [Using Buildpacks](http://docs.deis.io/en/latest/using_deis/using-buildpacks/)
123+
* Dockerfiles via `git push` -- Learn more about [Using Dockerfiles](http://docs.deis.io/en/latest/using_deis/using-dockerfiles/)
124+
* Docker Images via `deis pull` -- Learn more about [Using Docker Images](http://docs.deis.io/en/latest/using_deis/using-docker-images/)
125+
126+
As an example, we will walk through deploying a Ruby application using the Heroku Buildpack workflow.
127+
128+
## Prepare an Application
129+
Clone an example Ruby application:
130+
131+
```console
132+
$ git clone https://github.com/deis/example-ruby-sinatra.git
133+
$ cd example-ruby-sinatra
134+
```
123135

124136
## Create an Application
125-
From within the application directory, create an application on the default `dev` cluster:
137+
From within the application directory, create an application on Deis:
126138

127139
```console
128140
$ cd example-ruby-sinatra
@@ -131,16 +143,14 @@ $ deis create
131143

132144
Use `deis create --cluster=prod` to place the app on a different cluster. Don't like our name-generator? Use `deis create myappname`.
133145

134-
## Push
135-
Push builds of your application from your local git repository or from a Docker Registry. Each build creates a new release, which can be rolled back.
136-
137-
#### From a Git Repository
138-
When you created the application, a git remote for Deis was added automatically.
146+
## Deploy
147+
When you created the application, a git remote for Deis was added automatically. Deploy with `git push`.
139148

140149
```console
141150
$ git push deis master
142151
```
143-
This will use the Deis builder to package your application as a Docker Image and deploy it on your application's cluster.
152+
This will use the Deis builder to package your application as a Docker Image and automatically deploy it to the platform.
153+
Each build creates a new release, which can be rolled back.
144154

145155
## Configure
146156
Configure your application with environment variables. Each config change also creates a new release.
@@ -150,14 +160,13 @@ $ deis config:set DATABASE_URL=postgres://
150160
```
151161

152162
## Test
153-
### Run tests
154-
Test your application by running commands inside an ephemeral Docker container.
163+
Test the application by running your test suite inside an ephemeral Docker container.
155164

156165
```console
157166
$ deis run make test
158167
```
159168

160-
To integrate with your CI system, check the return code.
169+
Use the return code to integrate with a CI system.
161170

162171
## Scale
163172
Scale containers horizontally with ease.
@@ -173,7 +182,7 @@ Access to aggregated logs makes it easy to troubleshoot problems with your appli
173182
$ deis logs
174183
```
175184

176-
Use `deis run` to execute one-off commands and explore the deployed container. Coming soon: `deis attach` to jump into a live container.
185+
Use `deis run` to execute one-off commands and explore the deployed container.
177186

178187
## Testing the cluster
179188

@@ -197,22 +206,9 @@ The most common cause of this issue is that a [new discovery URL](https://discov
197206
This usually means the controller failed to submit jobs to the scheduler. `deisctl journal controller` will show detailed error information, but the most common cause of this is that the cluster was created with the wrong SSH key for the `--auth` parameter. The key supplied with the `--auth` parameter must be the same key that was used to provision the Deis servers. If you suspect this to be the issue, you'll need to `clusters:destroy` the cluster and recreate it, along with the app.
198207

199208
#### A Deis component fails to start
200-
201209
Use `deisctl status <component>` to view the status of the component. You can also use `deisctl journal <component>` to tail logs for a component, or `deisctl list` to list all components.
202210

203-
The most common cause of services failing to start are sporadic issues with DockerHub. The telltale sign of this is:
204-
205-
```console
206-
May 12 18:24:37 deis-3 systemd[1]: Starting deis-controller...
207-
May 12 18:24:37 deis-3 sh[6176]: 2014/05/12 18:24:37 Error: No such id: deis/controller
208-
May 12 18:24:37 deis-3 sh[6176]: Pulling repository deis/controller
209-
May 12 18:29:47 deis-3 sh[6176]: 2014/05/12 18:29:47 Could not find repository on any of the indexed registries.
210-
May 12 18:29:47 deis-3 systemd[1]: deis-controller.service: control process exited, code=exited status=1
211-
May 12 18:29:47 deis-3 systemd[1]: Failed to start deis-controller.
212-
May 12 18:29:47 deis-3 systemd[1]: Unit deis-controller.service entered failed state.
213-
```
214-
215-
We are exploring workarounds and are working with the Docker team to improve DockerHub reliability. In the meantime, try starting the service again with `deisctl restart <component>`.
211+
The most common cause of services failing to start are sporadic issues with Docker Hub. We are exploring workarounds and are working with the Docker team to improve Docker Hub reliability. In the meantime, try starting the service again with `deisctl restart <component>`.
216212

217213
### Any other issues
218214
Running into something not detailed here? Please [open an issue](https://github.com/deis/deis/issues/new) or hop into [#deis](https://botbot.me/freenode/deis/) and we'll help!

client/deis.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -843,7 +843,7 @@ def builds_create(self, args):
843843
844844
Arguments:
845845
<image>
846-
A fully-qualified docker image, either from DockerHub (e.g. deis/example-go)
846+
A fully-qualified docker image, either from Docker Hub (e.g. deis/example-go)
847847
or from an in-house registry (e.g. myregistry.example.com:5000/example-go).
848848
849849
Options:

0 commit comments

Comments
 (0)