aboutsummaryrefslogtreecommitdiffstats
path: root/compose/compose.yaml
diff options
context:
space:
mode:
authormuraliparthatechm <muraliparthasarathy.k@techmahindra.com>2024-12-18 18:15:17 +0100
committermuraliparthatechm <muraliparthasarathy.k@techmahindra.com>2024-12-19 13:39:05 +0100
commit32fd1f3c1e22dbeb69e3cc150a6fb1b72ea0ed53 (patch)
treea068657e6b3d7f87506a30f4ec3ce639cf06c5bc /compose/compose.yaml
parent522cfc28114b076fbcb1da8b2a16894e647ed10c (diff)
Update CSIT with opa-pdp (docker-compose env)
Issue-ID: POLICY-5211 Change-Id: I8b75e6e850fae171fbc75fc67cb59171a78df4e0 Signed-off-by: muraliparthatechm <muraliparthasarathy.k@techmahindra.com>
Diffstat (limited to 'compose/compose.yaml')
-rw-r--r--compose/compose.yaml28
1 files changed, 28 insertions, 0 deletions
diff --git a/compose/compose.yaml b/compose/compose.yaml
index a151ad42..6d1abad0 100644
--- a/compose/compose.yaml
+++ b/compose/compose.yaml
@@ -130,6 +130,34 @@ services:
'kafka', '9092'
]
+
+ opa-pdp:
+ image: ${CONTAINER_LOCATION}onap/policy-opa-pdp:${POLICY_OPA_PDP_VERSION}
+ container_name: policy-opa-pdp
+ depends_on:
+ - kafka
+ - pap
+ hostname: policy-opa-pdp
+ volumes:
+ - ./config/opa-pdp/config.json:/app/config/config.json:ro
+ - ./config/opa-pdp/policy-opa-pdp.sh:/app/policy-opa-pdp.sh:ro
+ - ./wait_for_port.sh:/app/wait_for_port.sh
+ - type: bind
+ source: ./config/opa-pdp/policies
+ target: /opt/policies
+ - type: bind
+ source: ./config/opa-pdp/data
+ target: /opt/data
+ env_file: "./config/opa-pdp/opa-pdp.env"
+ entrypoint: sh wait_for_port.sh
+ command: [
+ '-c', './policy-opa-pdp.sh',
+ 'kafka', '9092',
+ 'pap', '6969'
+ ]
+ ports:
+ - ${OPA_PDP_PORT}:8282
+
drools-pdp:
image: ${CONTAINER_LOCATION}onap/policy-drools:${POLICY_DROOLS_PDP_VERSION}
container_name: policy-drools-pdp