diff options
Diffstat (limited to 'csit/tests/filesprocessingconfigpmmapper/libraries/DockerContainerManager.py')
-rw-r--r-- | csit/tests/filesprocessingconfigpmmapper/libraries/DockerContainerManager.py | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/csit/tests/filesprocessingconfigpmmapper/libraries/DockerContainerManager.py b/csit/tests/filesprocessingconfigpmmapper/libraries/DockerContainerManager.py index 3e3ae58..036a8a1 100644 --- a/csit/tests/filesprocessingconfigpmmapper/libraries/DockerContainerManager.py +++ b/csit/tests/filesprocessingconfigpmmapper/libraries/DockerContainerManager.py @@ -1,3 +1,22 @@ +# ============LICENSE_START======================================================= +# org.onap.dcae +# ================================================================================ +# Copyright (c) 2021-2022 Nokia. All rights reserved. +# ================================================================================ +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ============LICENSE_END========================================================= +# + import docker from EnvsReader import EnvsReader from docker.types import Mount @@ -7,8 +26,9 @@ class DockerContainerManager: def run_pmmapper_container(self, client_image, container_name, path_to_env, dr_node_ip, mr_ip): client = docker.from_env() environment = EnvsReader().read_env_list_from_file(path_to_env) - environment.append("CONFIG_BINDING_SERVICE_SERVICE_HOST=172.18.0.5") environment.append("CONFIG_BINDING_SERVICE_SERVICE_PORT=10000") + environment.append("CONFIG_BINDING_SERVICE=172.18.0.5") + environment.append("CONSUL_HOST=172.18.0.5") environment.append("HOSTNAME=pmmapper") client.containers.run( image=client_image, |