blob: ebfe637df66fdf59ba1685f06740c99e5e0724a9 (
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
50
51
52
53
|
Information about creating a docker image for running catlfish from a
binary release or with catlfish built from source.
Requirements
------------
- lack of expectations regarding security -- docker doesn't verify
downloaded images
- a 64-bit Linux system
- lxc-docker version 1.3 or later
Building an image
-----------------
$ make catlfish-dev # development image
or
$ make catlfish # release image
Configuring a log
-----------------
mkdir mylog; cd mylog && make -f ../mklog.mk log
Running
-------
Example:
$ docker run -d --name mylog-signing \
-v $(pwd)/signing:/usr/local/etc/catlfish:ro \
-p $SIGNING_IP:8288:8288 \
catlfish mylog signing mylog-signing
$ docker run -d --name mylog-storage \
-v $(pwd)/storage:/usr/local/etc/catlfish:ro \
-p $STORAGE_IP:8081:8081 \
catlfish mylog storage mylog-storage
$ docker run -d --name mylog-frontend \
-v $(pwd)/frontend:/usr/local/etc/catlfish:ro \
-v /path/to/dbdir:/var/local/db/catlfish
-p $FRONTEND_IP:8080:8080 \
-p $FRONTEND_IP:8082:8082 \
catlfish mylog frontend mylog-frontend
$ docker run -d --name mylog-merge \
-e MERGE_DB_DIR=/var/local/db/catlfish-merge
-v $(pwd)/merge:/usr/local/etc/catlfish:ro \
-v /path/to/merge-dbdir:/var/local/db/catlfish-merge
catlfish mylog merge mylog-merge
|