summaryrefslogtreecommitdiff
path: root/libeufin
diff options
context:
space:
mode:
authorMS <ms@taler.net>2023-03-06 15:13:41 +0100
committerMS <ms@taler.net>2023-03-06 15:13:41 +0100
commitc5010284c65634042f4512877d084c734330e789 (patch)
treeaefddf67f550473cc3242b92d77ab860e4db062c /libeufin
parent36eb461591c2745f1514286f2a6fd7895801b5d1 (diff)
downloaddocs-c5010284c65634042f4512877d084c734330e789.tar.gz
docs-c5010284c65634042f4512877d084c734330e789.tar.bz2
docs-c5010284c65634042f4512877d084c734330e789.zip
regio tutorial
adapting some instructions to let the Docker- and the source-based installations equally behave.
Diffstat (limited to 'libeufin')
-rw-r--r--libeufin/local-currencies-tutorial.rst16
1 files changed, 11 insertions, 5 deletions
diff --git a/libeufin/local-currencies-tutorial.rst b/libeufin/local-currencies-tutorial.rst
index 2178eca0..2fd87f2c 100644
--- a/libeufin/local-currencies-tutorial.rst
+++ b/libeufin/local-currencies-tutorial.rst
@@ -83,6 +83,7 @@ should suffice to start Sandbox and NGINX, by mapping
the host's 8080 port to the container's 80.
.. code-block:: console
+
$ export LIBEUFIN_EXPOSED_PORT=8080
$ docker run \
-e LIBEUFIN_EXPOSED_PORT=$LIBEUFIN_EXPOSED_PORT \
@@ -104,9 +105,11 @@ values.
$ export MY_ADMIN_PASSWORD=secret
$ export LIBEUFIN_EXPOSED_PORT=8080
$ docker run \
- -e LIBEUFIN_SANDBOX_ADMIN_PASSWORD=$MY_ADMIN_PASSWORD
+ -e LIBEUFIN_SANDBOX_ADMIN_PASSWORD=$MY_ADMIN_PASSWORD \
-e CURRENCY=NB \
+ -e LIBEUFIN_EXPOSED_PORT=$LIBEUFIN_EXPOSED_PORT \
-v libeufin_data:/libeufin-data \
+ -v /tmp:/tmp \
-p $LIBEUFIN_EXPOSED_PORT:80 \
-p 5016:5016 \
-it nlnet
@@ -117,8 +120,11 @@ In the example above, Docker:
1. Sets the currency to *NB*
2. Stores the database in a *volume*. This helps to
share the database between containers.
-3. Maps the host's 8080 to the container's 80 port.
-4. Maps the host's 5016 to the container's 5016 port.
+3. Mounts container's ``/tmp`` to the host's, to let
+ the reader obtain the file TAN in the same way the
+ source-based installation does.
+4. Maps the host's 8080 to the container's 80 port.
+5. Maps the host's 5016 to the container's 5016 port.
That lets the CLI reach Sandbox inside the container,
and therefore run the tutorial.
@@ -225,7 +231,7 @@ this request, to make sure that both parties agree.
demobank \
circuit-cashout \
--amount-debit=NB:1 \
- --amount-credit=FIAT:0.95 \
+ --amount-credit=CHF:0.95 \
--tan-channel=file
If the previous command succeeded, it returned a JSON looking
@@ -277,7 +283,7 @@ account.
.. code-block:: console
- "subject" : "Cash-out of NB:1 to FIAT:0.95"
+ "subject" : "Cash-out of NB:1 to CHF:0.95"
The next commands show how to delete one account from
the local currency circuit. For the deletion to succeed,