blob: 47bdc149a1f66a01ac6918e864f1faf61b393d9a (
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
|
# Genprocessor: Docker
`http` - http server that serves up the DCAE Nifi jars as files under the path `/nifi-jars`
`job` - background job that continuously polls the onboarding API for components and generates jars from components
The usage here will assume the use of a docker volume to persist data.
Create a volume:
```
docker volume create genprocessor
```
## job
Build:
```
$ cd ../
$ docker build -t genprocessor-job -f docker/job/Dockerfile .
```
Run:
```
docker run -v genprocessor:/work -e GENPROC_ONBOARDING_API_HOST=http://some-hostname/onboarding -d genprocessor-job
```
NOTE: Above onboarding API is to the one running in iLab.
Run as part of the stack:
```
docker run -v genprocessor:/work --link onboarding-api:onboarding-api -d genprocessor-job
```
## http
Build:
```
$ cd http
$ docker build -t genprocessor-http .
```
Run:
```
$ docker run -p 8080:80 -d -v genprocessor:/www/data:ro genprocessor-http
```
|