summaryrefslogtreecommitdiff
path: root/docker/README
diff options
context:
space:
mode:
authorMarcello Stanisci <marcello.stanisci@inria.fr>2017-01-05 14:27:06 +0100
committerMarcello Stanisci <marcello.stanisci@inria.fr>2017-01-05 14:27:06 +0100
commit572118b8b9f731b9c73b283fc2bf277f9e438370 (patch)
treed5d29bda8034e366ba7ea29b3cad6e584ca33e30 /docker/README
parent5889ebe349e58c601af8399f6f26f9f6a2cd2c1c (diff)
downloaddeployment-572118b8b9f731b9c73b283fc2bf277f9e438370.tar.gz
deployment-572118b8b9f731b9c73b283fc2bf277f9e438370.tar.bz2
deployment-572118b8b9f731b9c73b283fc2bf277f9e438370.zip
Update README
Diffstat (limited to 'docker/README')
-rw-r--r--docker/README27
1 files changed, 14 insertions, 13 deletions
diff --git a/docker/README b/docker/README
index 8701ab6..ff8ee2a 100644
--- a/docker/README
+++ b/docker/README
@@ -1,19 +1,23 @@
-=== Dockerizing the Exchange ===
+=== Dockerizing the Exchange/Merchant ===
-This section shows how to run a "dockerized" exchange.
+This section shows how to run a "dockerized" exchange/merchant.
The exchange uses postgresql (container) and is served
-by nginx (container).
+by nginx (container). The merchant instead depends on exchange
+(container) and postgresql (container).
The docker's tools needed are: docker, docker-compose, docker-machine.
Please refer to Docker's official documentation for their installation
instructions.
-Before starting to build the exchange's image, make sure a docker-machine
-instance is up and running.
+Before starting to build the exchange/merchant's image, make sure a
+docker-machine instance is up and running.
1. Build the images.
-From <THIS_REPO/docker>, give:
+<COMPONENT> is either 'exchange' or 'merchant', depending on what is
+to be built.
+
+From <THIS_REPO/<COMPONENT>/docker>, give:
$ docker-compose build
@@ -22,7 +26,7 @@ and nginx images.
2. Launch the service.
-The following command launches the exchange and all other services
+The following command launches the <COMPONENT> and all other services
it depends on. From the same directory as the previous step, issue:
$ docker-compose up
@@ -34,15 +38,12 @@ PS. Errors about existing roles/databases can be ignored.
3. Test
-Issue the following command to see if the exchange has been correctly
-installed and launched.
+Issue the following command to see if the <COMPONENT> has been
+correctly installed and launched.
+# Some 'greeting' message should be returned.
$ curl http://`docker-machine ip`:80/
-and
-
-$ curl http://`docker-machine ip`:80/keys
-
=== How to use these images ===
This section explains how to (1) build and (2) run individual