summaryrefslogtreecommitdiffstats
path: root/docker-compose-integration.yml
diff options
context:
space:
mode:
authorPamela Dragosh <pdragosh@research.att.com>2017-10-10 16:18:27 -0400
committerPamela Dragosh <pdragosh@research.att.com>2017-10-11 09:42:57 -0400
commitca15b920b57259eccc7dbaea5200f393d3f8bfe6 (patch)
tree9fef7238c992bcb75e0f1cc897ebd9cc98ac7d6e /docker-compose-integration.yml
parent31fb6c55623e8655b5c29b8848020bb84397ef1e (diff)
Add ability to turn off policy preload
You can now set environment variable to override whether or not the policies are pre-loaded by the engines during docker image startup. The README.md is updated with instructions. Each docker-compose has a different default set. The .env file is set to load policies by default to true. You can override by either changing this file or setting the environment: export PRELOAD_POLICIES=false Issue-ID: POLICY-304 Change-Id: Ia96788ac3b8d47814eea1046d96c4e3e4a0b9664 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
Diffstat (limited to 'docker-compose-integration.yml')
-rw-r--r--docker-compose-integration.yml4
1 files changed, 3 insertions, 1 deletions
diff --git a/docker-compose-integration.yml b/docker-compose-integration.yml
index 5d1056c8..042971d2 100644
--- a/docker-compose-integration.yml
+++ b/docker-compose-integration.yml
@@ -1,4 +1,4 @@
-version: '2'
+version: '3'
services:
mariadb:
image: onap/policy/policy-db
@@ -12,6 +12,8 @@ services:
hostname: nexus
pap:
image: onap/policy/policy-pe
+ environment:
+ - PRELOAD_POLICIES=${PRELOAD_POLICIES}
container_name: pap
depends_on:
- mariadb