2019-09-08 17:27:48 +02:00
This doc is about the Docker container for "flowee/pos-cli".
Other Docker containers [in this repo ](../README.md )
The pos-cli is a simple and fast command that can be used as a basic
backing of a **Point-of-Sale ** setup.
2019-09-08 20:52:23 +02:00
pos-cli is not a service, it follows the so called '[entry-point ](https://blog.codeship.com/understanding-dockers-cmd-and-entrypoint-instructions/ )' design
2019-09-08 17:27:48 +02:00
which in essence means it behaves just like a command-line application but
2019-09-08 20:52:23 +02:00
in a Docker container.
2019-09-08 17:27:48 +02:00
Running a basic command goes like this;
```
docker run --rm flowee/pos-cli
Usage: /usr/bin/pos [options] [address]
Options:
-h, --help Displays this help.
--version Display version
2019-09-08 20:52:23 +02:00
--connect <Hostname> server location and port
2019-09-08 17:27:48 +02:00
--verbose, -v Be more verbose
--quiet, -q Be quiet, only errors are shown
Arguments:
[address] Addresses to listen to
```
The usage of `--rm` on the commandline is useful because it removes the
container after it exists.
Use the `--connect=` argument to point to a running * the Hub * and and pass
in any number of addresses to the command;
```
docker run --rm flowee/pos-cli --connect=192.168.1.2 qpgn5ka4jptc98a9ftycvujxx33e79nxuqlz5mvxns
18:14:52 [7000] Remote server version: "Flowee:1 (2019-7.1)"
```
This command will not return until you hit Ctrl-C, and any activity on that
address will be printed with a notification line.
Currently notifications will be given when a transaction paying this
2019-09-08 20:52:23 +02:00
transaction is seen entering mempool (or present in mempool during startup).
2019-09-08 17:27:48 +02:00
2019-09-08 20:52:23 +02:00
Notifications for transactions paying the addresses monitored that are being
2019-09-08 17:27:48 +02:00
mined will be notified.
Notifications will be given when a double spend involving our transaction
has been noticed.