Skip to content

Commit

Permalink
Merge pull request #58 from marionleborgne/resolve-vhost
Browse files Browse the repository at this point in the history
Resolve vhost automatically
  • Loading branch information
marionleborgne authored Sep 8, 2017
2 parents 5f65858 + 670a96a commit 0e89d49
Show file tree
Hide file tree
Showing 25 changed files with 114 additions and 264 deletions.
13 changes: 0 additions & 13 deletions Dockerfile

This file was deleted.

41 changes: 1 addition & 40 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -41,51 +41,12 @@ Run the tests

python setup.py test

Docker (experimental)
---------------------

Docker can be used to start modules that don't require connecting to the
host machine. It's useful for running the mock source (signal generator)
and other processing modules.

::

docker build -t cloudbrain .
docker run -it -v /path/to/config:/config cloudbrain \
--file /config/name.of.config.file.json

When running other services on a docker network:

::

docker network create cloudbrain_network
docker run -it -v /path/to/config:/config cloudbrain \
--network cloudbrain_network \
--file /config/name.of.config.file.json

Docker Compose (experimental)
-----------------------------

The docker compose setup expects a cloudbrain\_network to already be set
up with a rabbitmq server named mock-rabbit running. The compose file
will load the configuration at ./examples/source.mock.docker.json which
can be modified as desired. This will not currently run modules that
require connecting to the host machine. It's useful for running the mock
source (signal generator) and other processing modules.

::

docker network create cloudbrain_network
docker run -d --hostname mock-rabbit --name mock-rabbit \
--network cloudbrain_network \
-p 8080:15672 -p 5672:5672 rabbitmq:3-management
docker-compose up

Examples
--------

See ``README.md`` in ``cloudbrain/examples`` for more information about
how to use and chain CloudBrain modules.
how to use CloudBrain analytics modules.

More docs
---------
Expand Down
17 changes: 0 additions & 17 deletions docker-compose.yml

This file was deleted.

Binary file modified docs/images/features.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,8 @@
"package": "cloudbrain.publishers.rabbitmq",
"options": {
"rabbitmq_address": "localhost",
"rabbitmq_user": "guest",
"rabbitmq_pwd": "guest",
"rabbitmq_vhost": "/"
"rabbitmq_user": "YOUR_EMAIL",
"rabbitmq_pwd": "YOUR_PASSWORD"
},
"base_routing_key": "some_unique_key",
"metrics": [
Expand Down Expand Up @@ -44,9 +43,8 @@
"package": "cloudbrain.subscribers.rabbitmq",
"options": {
"rabbitmq_address": "localhost",
"rabbitmq_user": "guest",
"rabbitmq_pwd": "guest",
"rabbitmq_vhost": "/"
"rabbitmq_user": "YOUR_EMAIL",
"rabbitmq_pwd": "YOUR_PASSWORD"
},
"base_routing_key": "some_unique_key",
"metrics": [
Expand All @@ -64,9 +62,8 @@
"package": "cloudbrain.publishers.rabbitmq",
"options": {
"rabbitmq_address": "localhost",
"rabbitmq_user": "guest",
"rabbitmq_pwd": "guest",
"rabbitmq_vhost": "/"
"rabbitmq_user": "YOUR_EMAIL",
"rabbitmq_pwd": "YOUR_PASSWORD"
},
"base_routing_key": "some_unique_key",
"metrics": [
Expand All @@ -93,9 +90,8 @@
"package": "cloudbrain.subscribers.rabbitmq",
"options": {
"rabbitmq_address": "localhost",
"rabbitmq_user": "guest",
"rabbitmq_pwd": "guest",
"rabbitmq_vhost": "/"
"rabbitmq_user": "YOUR_EMAIL",
"rabbitmq_pwd": "YOUR_PASSWORD"
},
"base_routing_key": "some_unique_key",
"metrics": [
Expand All @@ -112,9 +108,8 @@
"package": "cloudbrain.publishers.rabbitmq",
"options": {
"rabbitmq_address": "localhost",
"rabbitmq_user": "guest",
"rabbitmq_pwd": "guest",
"rabbitmq_vhost": "/"
"rabbitmq_user": "YOUR_EMAIL",
"rabbitmq_pwd": "YOUR_PASSWORD"
},
"base_routing_key": "some_unique_key",
"metrics": [
Expand Down Expand Up @@ -149,9 +144,8 @@
"package": "cloudbrain.subscribers.rabbitmq",
"options": {
"rabbitmq_address": "localhost",
"rabbitmq_user": "guest",
"rabbitmq_pwd": "guest",
"rabbitmq_vhost": "/"
"rabbitmq_user": "YOUR_EMAIL",
"rabbitmq_pwd": "YOUR_PASSWORD"
},
"base_routing_key": "some_unique_key",
"metrics": [
Expand All @@ -168,9 +162,8 @@
"package": "cloudbrain.publishers.rabbitmq",
"options": {
"rabbitmq_address": "localhost",
"rabbitmq_user": "guest",
"rabbitmq_pwd": "guest",
"rabbitmq_vhost": "/"
"rabbitmq_user": "YOUR_EMAIL",
"rabbitmq_pwd": "YOUR_PASSWORD"
},
"base_routing_key": "some_unique_key",
"metrics": [
Expand Down
10 changes: 4 additions & 6 deletions examples/filter.band.pass.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,8 @@
"package": "cloudbrain.subscribers.rabbitmq",
"options": {
"rabbitmq_address": "localhost",
"rabbitmq_user": "guest",
"rabbitmq_pwd": "guest",
"rabbitmq_vhost": "/"
"rabbitmq_user": "YOUR_EMAIL",
"rabbitmq_pwd": "YOUR_PASSWORD"
},
"base_routing_key": "some_unique_key",
"metrics": [
Expand All @@ -34,9 +33,8 @@
"package": "cloudbrain.publishers.rabbitmq",
"options": {
"rabbitmq_address": "localhost",
"rabbitmq_user": "guest",
"rabbitmq_pwd": "guest",
"rabbitmq_vhost": "/"
"rabbitmq_user": "YOUR_EMAIL",
"rabbitmq_pwd": "YOUR_PASSWORD"
},
"base_routing_key": "some_unique_key",
"metrics": [
Expand Down
10 changes: 4 additions & 6 deletions examples/filter.band.stop.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,8 @@
"package": "cloudbrain.subscribers.rabbitmq",
"options": {
"rabbitmq_address": "localhost",
"rabbitmq_user": "guest",
"rabbitmq_pwd": "guest",
"rabbitmq_vhost": "/"
"rabbitmq_user": "YOUR_EMAIL",
"rabbitmq_pwd": "YOUR_PASSWORD"
},
"base_routing_key": "some_unique_key",
"metrics": [
Expand All @@ -34,9 +33,8 @@
"package": "cloudbrain.publishers.rabbitmq",
"options": {
"rabbitmq_address": "localhost",
"rabbitmq_user": "guest",
"rabbitmq_pwd": "guest",
"rabbitmq_vhost": "/"
"rabbitmq_user": "YOUR_EMAIL",
"rabbitmq_pwd": "YOUR_PASSWORD"
},
"base_routing_key": "some_unique_key",
"metrics": [
Expand Down
5 changes: 2 additions & 3 deletions examples/sink.csv.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,8 @@
"package": "cloudbrain.subscribers.rabbitmq",
"options": {
"rabbitmq_address": "localhost",
"rabbitmq_user": "guest",
"rabbitmq_pwd": "guest",
"rabbitmq_vhost": "/"
"rabbitmq_user": "YOUR_EMAIL",
"rabbitmq_pwd": "YOUR_PASSWORD"
},
"base_routing_key": "some_unique_key",
"metrics": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,8 @@
"package": "cloudbrain.subscribers.rabbitmq",
"options": {
"rabbitmq_address": "localhost",
"rabbitmq_user": "guest",
"rabbitmq_pwd": "guest",
"rabbitmq_vhost": "/"
"rabbitmq_user": "YOUR_EMAIL",
"rabbitmq_pwd": "YOUR_PASSWORD"
},
"base_routing_key": "some_unique_key",
"metrics": [
Expand Down
5 changes: 2 additions & 3 deletions examples/sink.plotly.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,8 @@
"package": "cloudbrain.subscribers.rabbitmq",
"options": {
"rabbitmq_address": "localhost",
"rabbitmq_user": "guest",
"rabbitmq_pwd": "guest",
"rabbitmq_vhost": "/"
"rabbitmq_user": "YOUR_EMAIL",
"rabbitmq_pwd": "YOUR_PASSWORD"
},
"base_routing_key": "some_unique_key",
"metrics": [
Expand Down
5 changes: 2 additions & 3 deletions examples/sink.pyplot.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,8 @@
"package": "cloudbrain.subscribers.rabbitmq",
"options": {
"rabbitmq_address": "localhost",
"rabbitmq_user": "guest",
"rabbitmq_pwd": "guest",
"rabbitmq_vhost": "/"
"rabbitmq_user": "YOUR_EMAIL",
"rabbitmq_pwd": "YOUR_PASSWORD"
},
"base_routing_key": "some_unique_key",
"metrics": [
Expand Down
5 changes: 2 additions & 3 deletions examples/sink.stdout.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,8 @@
"package": "cloudbrain.subscribers.rabbitmq",
"options": {
"rabbitmq_address": "localhost",
"rabbitmq_user": "guest",
"rabbitmq_pwd": "guest",
"rabbitmq_vhost": "/"
"rabbitmq_user": "YOUR_EMAIL",
"rabbitmq_pwd": "YOUR_PASSWORD"
},
"base_routing_key": "some_unique_key",
"metrics": [
Expand Down
40 changes: 0 additions & 40 deletions examples/source.mock.docker.json

This file was deleted.

15 changes: 2 additions & 13 deletions examples/source.mock.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,15 @@
"package": "cloudbrain.publishers.rabbitmq",
"options": {
"rabbitmq_address": "localhost",
"rabbitmq_user": "guest",
"rabbitmq_pwd": "guest",
"rabbitmq_vhost": "/"
"rabbitmq_user": "YOUR_EMAIL",
"rabbitmq_pwd": "YOUR_PASSWORD"
},
"base_routing_key": "some_unique_key",
"metrics": [
{
"metric_name": "eeg",
"num_channels": 8,
"buffer_size": 10
},
{
"metric_name": "some_metric",
"num_channels": 8,
"buffer_size": 10
}
]
},
Expand All @@ -48,11 +42,6 @@
"metric_name": "eeg",
"num_channels": 8,
"buffer_size": 100
},
{
"metric_name": "some_metric",
"num_channels": 8,
"buffer_size": 100
}
]
}
Expand Down
5 changes: 2 additions & 3 deletions examples/source.muse.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,8 @@
"package": "cloudbrain.publishers.rabbitmq",
"options": {
"rabbitmq_address": "localhost",
"rabbitmq_user": "guest",
"rabbitmq_pwd": "guest",
"rabbitmq_vhost": "/"
"rabbitmq_user": "YOUR_EMAIL",
"rabbitmq_pwd": "YOUR_PASSWORD"
},
"base_routing_key": "some_unique_key",
"metrics": [
Expand Down
5 changes: 2 additions & 3 deletions examples/source.neurosky.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,8 @@
"package": "cloudbrain.publishers.rabbitmq",
"options": {
"rabbitmq_address": "localhost",
"rabbitmq_user": "guest",
"rabbitmq_pwd": "guest",
"rabbitmq_vhost": "/"
"rabbitmq_user": "YOUR_EMAIL",
"rabbitmq_pwd": "YOUR_PASSWORD"
},
"base_routing_key": "some_unique_key",
"metrics": [
Expand Down
5 changes: 2 additions & 3 deletions examples/source.openci.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,8 @@
"package": "cloudbrain.publishers.rabbitmq",
"options": {
"rabbitmq_address": "localhost",
"rabbitmq_user": "guest",
"rabbitmq_pwd": "guest",
"rabbitmq_vhost": "/"
"rabbitmq_user": "YOUR_EMAIL",
"rabbitmq_pwd": "YOUR_PASSWORD"
},
"base_routing_key": "some_unique_key",
"metrics": [
Expand Down
Loading

0 comments on commit 0e89d49

Please sign in to comment.