diff options
author | Hansen, Tony (th1395) <th1395@att.com> | 2021-06-22 21:12:32 +0000 |
---|---|---|
committer | Hansen, Tony (th1395) <th1395@att.com> | 2021-07-01 16:42:05 +0000 |
commit | 876d17be6b1916c08fb36edcdf924859cb04e3cc (patch) | |
tree | 0ca229505a333fa20392a3cec411fa34782ffecf /scripts | |
parent | 1002e423a67cc4c22846ffc333b8027230e55dcb (diff) |
support local config and policy files
* DCAEGEN2-2733/DCAEGEN2-2753 - onap-dcae-cbs-docker-client support local config and policy files
Support $CBS_CLIENT_CONFIG_PATH and $CBS_CLIENT_POLICY_PATH,
Default paths are /app-config/application_config.yaml and /etc/policies/policies.json.
If files are missing or malformed, drop back to the current behavior.
Change-Id: Iba2484f6be7fc54e412f7de302bb79a4d7bfde17
Signed-off-by: Hansen, Tony (th1395) <th1395@att.com>
Issue-ID: DCAEGEN2-2733
Issue-ID: DCAEGEN2-2753
Signed-off-by: Hansen, Tony (th1395) <th1395@att.com>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/mvn-phase-lib.sh | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/scripts/mvn-phase-lib.sh b/scripts/mvn-phase-lib.sh index 47bcd06..c9e8db9 100644 --- a/scripts/mvn-phase-lib.sh +++ b/scripts/mvn-phase-lib.sh @@ -231,12 +231,13 @@ run_tox_test() DIR=$(echo "$TOXINI" | rev | cut -f2- -d'/' | rev) cd "${CURDIR}/${DIR}" rm -rf ./venv-tox ./.tox - virtualenv ./venv-tox + python3 -m venv ./venv-tox source ./venv-tox/bin/activate - pip install pip==9.0.3 - pip install --upgrade argparse - pip install tox==2.9.1 - pip freeze + + pip3 install pip==9.0.3 + pip3 install --upgrade argparse + pip3 install tox==2.9.1 + pip3 freeze tox deactivate rm -rf ./venv-tox ./.tox @@ -248,11 +249,12 @@ build_wagons() rm -rf ./*.wgn venv-pkg SETUPFILES=$(find . -name "setup.py") - virtualenv ./venv-pkg + python3 -m venv ./venv-pkg source ./venv-pkg/bin/activate - pip install --upgrade pip - pip install wagon - + + pip3 install --upgrade pip + pip3 install wagon + CURDIR=$(pwd) for SETUPFILE in $SETUPFILES; do PLUGIN_DIR=$(dirname "$SETUPFILE") |