aboutsummaryrefslogtreecommitdiffstats
path: root/tests/dcaegen2/prh-testcases/resources/docker-compose.yml
blob: 8b6ea128843ff577b8ca7982c1a967d4068db115 (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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
version: "3"
services:
  prh:
    image: nexus3.onap.org:10001/onap/org.onap.dcaegen2.services.prh.prh-app-server:latest
    command: >
        --dmaap.dmaapConsumerConfiguration.dmaapHostName=dmaap-bc
        --dmaap.dmaapConsumerConfiguration.dmaapPortNumber=2222
        --dmaap.dmaapProducerConfiguration.dmaapHostName=dmaap-bc
        --dmaap.dmaapProducerConfiguration.dmaapPortNumber=2222
        --aai.aaiClientConfiguration.aaiHostPortNumber=3333
        --aai.aaiClientConfiguration.aaiHost=aai
        --aai.aaiClientConfiguration.aaiProtocol=http
    ports:
      - "8100:8100"
      - "8433:8433"
    environment:
      - LOG_LEVEL
      - PRH_LOG_LEVEL
    container_name: prh
    depends_on:
      - cbs
      - dmaap-bc
      - aai

  ssl_prh:
    image: nexus3.onap.org:10001/onap/org.onap.dcaegen2.services.prh.prh-app-server:latest
    command: >
        --dmaap.dmaapConsumerConfiguration.dmaapHostName=dmaap-bc
        --dmaap.dmaapConsumerConfiguration.dmaapPortNumber=2223
        --dmaap.dmaapConsumerConfiguration.dmaapProtocol=https
        --dmaap.dmaapProducerConfiguration.dmaapHostName=dmaap-bc
        --dmaap.dmaapProducerConfiguration.dmaapPortNumber=2223
        --dmaap.dmaapProducerConfiguration.dmaapProtocol=https
        --aai.aaiClientConfiguration.aaiHostPortNumber=3334
        --aai.aaiClientConfiguration.aaiHost=aai
        --aai.aaiClientConfiguration.aaiProtocol=https
        --security.enableAaiCertAuth=true
        --security.enableDmaapCertAuth=true
        --security.keyStorePath=/tmp/certs/org.onap.dcae.jks
        --security.keyStorePasswordPath=/tmp/certs/keystore.password
        --security.trustStorePath=/tmp/certs/org.onap.dcae.trust.jks
        --security.trustStorePasswordPath=/tmp/certs/truststore.password
    ports:
      - "8200:8100"
      - "8533:8433"
    volumes:
      - ./simulator/certs:/tmp/certs
    environment:
      - LOG_LEVEL
      - PRH_LOG_LEVEL
      - HOSTNAME
      - CONSUL_HOST
      - CONFIG_BINDING_SERVICE
    container_name: ssl_prh
    depends_on:
      - cbs
      - dmaap-bc
      - aai

  dmaap-bc:
    build:
      context: simulator
      dockerfile: DMaaP_simulator
    ports:
      - "2222:2222"
      - "2223:2223"
      - "2224:2224"
    container_name: dmaap_simulator

  aai:
    build:
      context: simulator
      dockerfile: AAI_simulator
    ports:
      - "3333:3333"
      - "3334:3334"
      - "3335:3335"
    container_name: aai_simulator

  consul:
    image: docker.io/consul:1.0.6
    ports:
      - "8500:8500"
    command: ["agent", "-bootstrap", "-client=0.0.0.0", "-server", "-config-dir=/consul/consul.d"]
    volumes:
      - ./consul.d/:/consul/consul.d

  consul-cfg:
    image: docker.io/consul:1.0.6
    restart: on-failure
    command: ["kv", "put", "-http-addr=http://consul-server:8500", "dcae-prh", '{
                                              "dmaap.dmaapConsumerConfiguration.dmaapHostName":"dmaap-bc",
                                              "dmaap.dmaapConsumerConfiguration.dmaapPortNumber":2223,
                                              "dmaap.dmaapConsumerConfiguration.dmaapProtocol":"https",
                                              "dmaap.dmaapProducerConfiguration.dmaapHostName":"dmaap-bc",
                                              "dmaap.dmaapProducerConfiguration.dmaapPortNumber":2223,
                                              "dmaap.dmaapProducerConfiguration.dmaapProtocol":"https",
                                              "aai.aaiClientConfiguration.aaiHostPortNumber":3334,
                                              "aai.aaiClientConfiguration.aaiHost":"aai",
                                              "aai.aaiClientConfiguration.aaiProtocol":"https",
                                              "security.enableAaiCertAuth":"true",
                                              "security.enableDmaapCertAuth":"true",
                                              "security.keyStorePath":"/tmp/certs/org.onap.dcae.jks",
                                              "security.keyStorePasswordPath":"/tmp/certs/keystore.password",
                                              "security.trustStorePath":"/tmp/certs/org.onap.dcae.trust.jks",
                                              "security.trustStorePasswordPath":"/tmp/certs/truststore.password"
                                            }'
    ]
    depends_on:
      - consul

  cbs:
    image: nexus3.onap.org:10001/onap/org.onap.dcaegen2.platform.configbinding.app-app:2.2.4
    ports:
      - "10000:10000"
    environment:
      - CONSUL_HOST
    depends_on:
      - consul-cfg