Add genprocessor project
[dcaegen2/platform.git] / mod / genprocessor / docker / README.md
1 # Genprocessor: Docker
2
3 `http` - http server that serves up the DCAE Nifi jars as files under the path `/nifi-jars`
4 `job` - background job that continuously polls the onboarding API for components and generates jars from components
5
6 The usage here will assume the use of a docker volume to persist data.
7
8 Create a volume:
9
10 ```
11 docker volume create genprocessor
12 ```
13
14 ## job
15
16 Build:
17
18 ```
19 $ cd ../
20 $ docker build -t genprocessor-job -f docker/job/Dockerfile .
21 ```
22
23 Run:
24
25 ```
26 docker run -v genprocessor:/work -e GENPROC_ONBOARDING_API_HOST=http://some-hostname/onboarding -d genprocessor-job
27 ```
28
29 NOTE: Above onboarding API is to the one running in iLab.
30
31 Run as part of the stack:
32
33 ```
34 docker run -v genprocessor:/work --link onboarding-api:onboarding-api -d genprocessor-job
35 ```
36
37 ## http
38
39 Build:
40
41 ```
42 $ cd http
43 $ docker build -t genprocessor-http .
44 ```
45
46 Run:
47
48 ```
49 $ docker run -p 8080:80 -d -v genprocessor:/www/data:ro genprocessor-http
50 ```
51