diff options
author | Pamela Dragosh <pdragosh@research.att.com> | 2017-10-10 16:18:27 -0400 |
---|---|---|
committer | Pamela Dragosh <pdragosh@research.att.com> | 2017-10-11 09:42:57 -0400 |
commit | ca15b920b57259eccc7dbaea5200f393d3f8bfe6 (patch) | |
tree | 9fef7238c992bcb75e0f1cc897ebd9cc98ac7d6e /docker-compose.yml | |
parent | 31fb6c55623e8655b5c29b8848020bb84397ef1e (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.yml')
-rw-r--r-- | docker-compose.yml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/docker-compose.yml b/docker-compose.yml index 2de9ffe5..6091dd93 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,4 +1,4 @@ -version: '2' +version: '3' networks: default: driver: bridge @@ -17,6 +17,8 @@ services: hostname: nexus pap: image: onap/policy/policy-pe + environment: + - PRELOAD_POLICIES=${PRELOAD_POLICIES} container_name: pap depends_on: - mariadb |