From ca15b920b57259eccc7dbaea5200f393d3f8bfe6 Mon Sep 17 00:00:00 2001 From: Pamela Dragosh Date: Tue, 10 Oct 2017 16:18:27 -0400 Subject: 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 --- docker-compose-integration.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'docker-compose-integration.yml') 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 -- cgit 1.2.3-korg