Skip to content

Commit

Permalink
Replaced refs to server and worker with controller.
Browse files Browse the repository at this point in the history
  • Loading branch information
mboersma committed Mar 19, 2014
1 parent ef6299d commit 884fed5
Show file tree
Hide file tree
Showing 13 changed files with 27 additions and 32 deletions.
3 changes: 1 addition & 2 deletions contrib/digitalocean/prepare-controller-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ docker pull deis/registry:latest
docker pull deis/cache:latest
docker pull deis/logger:latest
docker pull deis/database:latest
docker pull deis/server:latest
docker pull deis/worker:latest
docker pull deis/controller:latest
docker pull deis/builder:latest

# install chef 11.x deps
Expand Down
3 changes: 1 addition & 2 deletions contrib/ec2/prepare-controller-ami.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@ docker pull deis/registry:latest
docker pull deis/cache:latest
docker pull deis/logger:latest
docker pull deis/database:latest
docker pull deis/server:latest
docker pull deis/worker:latest
docker pull deis/controller:latest
docker pull deis/builder:latest

# install chef 11.x deps
Expand Down
3 changes: 1 addition & 2 deletions contrib/rackspace/prepare-node-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@ docker pull deis/registry:latest
docker pull deis/cache:latest
docker pull deis/logger:latest
docker pull deis/database:latest
docker pull deis/server:latest
docker pull deis/worker:latest
docker pull deis/controller:latest
docker pull deis/builder:latest

# install chef 11.x deps
Expand Down
4 changes: 2 additions & 2 deletions contrib/vagrant/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ the one from Pip.

* To use Django's manage.py:
* SSH in to the VM with `vagrant ssh`
* Use `dsh deis-server`
* Get into the Django server's path `cd /app/deis`
* Use `dsh deis-controller`
* Get into the Django server's path `cd /app/deis/controller`
* Get a list of commands with; `./manage.py help`

* Django's native web admin interface is available at http://deis-controller.local:8000/admin/
Expand Down
3 changes: 1 addition & 2 deletions contrib/vagrant/prepare-ubuntu-box.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,7 @@ docker pull deis/registry:latest
docker pull deis/cache:latest
docker pull deis/logger:latest
docker pull deis/database:latest
docker pull deis/server:latest
docker pull deis/worker:latest
docker pull deis/controller:latest
docker pull deis/builder:latest

# install chef 11.x deps
Expand Down
4 changes: 2 additions & 2 deletions contrib/vagrant/util/_controller-reset-db.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ echo "Dropping and recreating Deis database..."
echo "su postgres -c 'dropdb deis && createdb --encoding=utf8 --template=template0 deis'" | ./dshell deis-database

echo "Running South migrations..."
echo '/app/deis/manage.py syncdb --migrate --noinput' | ./dshell deis-server
echo '/app/deis/controller/manage.py syncdb --migrate --noinput' | ./dshell deis-controller

echo "Importing fixtures"
echo '/app/deis/manage.py loaddata /app/deis/api/fixtures/dev.json' | ./dshell deis-server
echo '/app/deis/controller/manage.py loaddata /app/deis/api/fixtures/dev.json' | ./dshell deis-controller

# Most of the fixture data is generic. However the host machine's SSH credentials will change
# from developer to developer.
Expand Down
6 changes: 3 additions & 3 deletions contrib/vagrant/util/add_server_dev_deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
cd /vagrant/contrib/vagrant/util/

# Use the `coverage' command to signal whether the container has the dev dependencies
echo "which coverage > /dev/null" | ./dshell deis-server
echo "which coverage > /dev/null" | ./dshell deis-controller
if [ $? -ne 0 ]; then
cat <<-EOF | ./dshell deis-server
cd /app/deis
cat <<-EOF | ./dshell deis-controller
cd /app/deis/controller
pip install -r dev_requirements.txt
EOF
else
Expand Down
8 changes: 4 additions & 4 deletions contrib/vagrant/util/dshell
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
# Convenience script for getting a terminal session on a docker container.
# Usage: ./dshell <continer name> <command>
# Examples:
# `./dshell deis-server /bin/ls` lists the contents of the root home folder
# `./dshell deis-server` gives an interactive prompt
# echo "ls" | `./dshell deis-server` lists the contents of the root home folder
# `./dshell deis-controller /bin/ls` lists the contents of the root home folder
# `./dshell deis-controller` gives an interactive prompt
# echo "ls" | `./dshell deis-controller` lists the contents of the root home folder

ID=$(docker inspect $1 | python -c 'import json,sys;obj=json.load(sys.stdin);print obj[0]["ID"]')
lxc-attach -n $ID $2
lxc-attach -n $ID $2
8 changes: 4 additions & 4 deletions controller/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@ coverage:
coverage html

build:
docker build -t deis/server .
docker build -t deis/controller .

run:
docker run -rm -p $${PORT:-8000}:$${PORT:-8000} -e ETCD=$${ETCD:-127.0.0.1:4001} -name deis-server deis/server ; exit 0
docker run -rm -p $${PORT:-8000}:$${PORT:-8000} -e ETCD=$${ETCD:-127.0.0.1:4001} -name deis-controller deis/controller ; exit 0

shell:
docker run -t -i -rm -e ETCD=$${ETCD:-127.0.0.1:4001} deis/server /bin/bash
docker run -t -i -rm -e ETCD=$${ETCD:-127.0.0.1:4001} deis/controller /bin/bash

clean:
-docker rmi deis/server
-docker rmi deis/controller

flake8:
flake8
4 changes: 2 additions & 2 deletions controller/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

A Docker image containing a REST API and web server, for use in the [Deis](http://deis.io) open source PaaS.

[![image](https://d207aa93qlcgug.cloudfront.net/img/icons/framed-icon-checked-repository.svg)](https://index.docker.io/u/deis/server/)
[![image](https://d207aa93qlcgug.cloudfront.net/img/icons/framed-icon-checked-repository.svg)](https://index.docker.io/u/deis/controller/)

[**Trusted Build**](https://index.docker.io/u/deis/server/)
[**Trusted Build**](https://index.docker.io/u/deis/controller/)

This Docker image is based on the trusted build [deis/base](https://index.docker.io/u/deis/base/), which itself is based on the official [ubuntu:12.04](https://index.docker.io/_/ubuntu/) base image.

Expand Down
7 changes: 3 additions & 4 deletions docs/contributing/localdev.rst
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ For a Local Chef Server
For a Hosted Chef Server

* Login to the Web UI
* Navigate to the Groups tab
* Navigate to the Groups tab
* Click "Edit" on the "Admins" row
* Under "Clients" heading, toggle the "deis-controller" radio button
* Save changes
Expand Down Expand Up @@ -247,15 +247,14 @@ Tail Logs

.. code-block:: console
$ vagrant ssh -c 'sudo docker logs --follow=true deis-server'
$ vagrant ssh -c 'sudo docker logs --follow=true deis-worker'
$ vagrant ssh -c 'sudo docker logs --follow=true deis-controller'
Restart Services
````````````````

.. code-block:: console
$ vagrant ssh -c 'sudo restart deis-worker && sudo restart deis-server'
$ vagrant ssh -c 'sudo restart deis-controller'
Django Admin
````````````
Expand Down
2 changes: 1 addition & 1 deletion docs/contributing/releases.rst
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ Documentation
* log in to http://pypi.python.org/ and use the web form at the
`Deis Pypi`_ page to upload the zipfile
- Check documentation for deis/* projects at the `Docker Index`_
* click "Settings" for each project (deis/server, deis/cache, etc.)
* click "Settings" for each project (deis/controller, deis/cache, etc.)
* paste the contents of each README.md into the "long description" field if
there are discrepencies. (These don't automatically sync up after the
Trusted Build is first created.)
Expand Down
4 changes: 2 additions & 2 deletions docs/cookbook/attributes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ mode
* ``type: Boolean``

When set to true, the cookbook will automatically mount ``default.deis.dev.source``'s
submodules into their respective containers. For example, ``deis-server`` will
automatically have the ``server`` project mounted for development.
submodules into their respective containers. For example, ``deis-logger`` will
automatically have the ``logger`` project mounted for development.

source
~~~~~~
Expand Down

0 comments on commit 884fed5

Please sign in to comment.