summaryrefslogtreecommitdiff
path: root/docker/README
blob: 69aa574db18e3c2fd8a530c54bcbdb855ba64000 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
=== The Compose way ==

This way of building things is the preferred one:
just running,

$ docker-compose up

from <THIS_REPO/docker>, should build all the images.

Only the base image and the exchange are currently supposed
to be built this way.

Ideally, a compose recipe for the exchange and one for merchant
backend should be made available.

=== How to use these images ===

From a "docker ready" environment, you need to (1) build the
image and (2) run it.

(1) is done by:

$ docker build -t taler/base <THIS_REPO>/docker/base/
$ docker build -t taler/exchange <THIS_REPO>/docker/exchange/

(2) is done by:

$ docker run -it taler/exchange

Note that the value passed to option -t is completely arbitrary.

=== How to destroy them ===

1. Stop all containers:

  $ docker stop $(docker ps -a -q)


2. If necessary, remove all containers:

  $ docker rm $(docker ps -a -q)

3. Remove images:

  $ docker rmi -f $(docker images -q)


NOTE: for tripwire users, those commands are all defined
      as aliases.