diff options
author | Tomasz Wrobel <tomasz.wrobel@nokia.com> | 2022-05-12 13:28:07 +0200 |
---|---|---|
committer | Tomasz Wrobel <tomasz.wrobel@nokia.com> | 2022-05-31 12:15:26 +0200 |
commit | ef8a1b1f910492af8d46dd0e97a044a7e7389c8c (patch) | |
tree | 4801854783db78ff86f974c393ed8506a4c89898 /tools/development/run-datafile.sh | |
parent | 965cf0ea3cd08fdad7ec28a5078032dada455124 (diff) |
Extend pm-mapper dev tools of DFC
Issue-ID: DCAEGEN2-3182
Signed-off-by: Tomasz Wrobel <tomasz.wrobel@nokia.com>
Change-Id: I9e228624df44951d2b5f25bad63db5905b9d611a
Diffstat (limited to 'tools/development/run-datafile.sh')
-rwxr-xr-x | tools/development/run-datafile.sh | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/tools/development/run-datafile.sh b/tools/development/run-datafile.sh new file mode 100755 index 0000000..2b1f070 --- /dev/null +++ b/tools/development/run-datafile.sh @@ -0,0 +1,32 @@ +#!/bin/bash +# ============LICENSE_START======================================================= +# Copyright (C) 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========================================================= +source ./env/containers_ip +IMAGE=nexus3.onap.org:10003/onap/org.onap.dcaegen2.collectors.datafile.datafile-app-server:latest +TARGET_CONFIG_PATH=/app-config/application_config.yaml +TARGET_SPRING_CONFIG=/opt/app/datafile/config/application.yaml + +docker run -d -p 8100:8100 -p 8000:8000 \ + --mount type=bind,source="$PWD/resources/datafile/mount_config.yaml",target="$TARGET_CONFIG_PATH" \ + --mount type=bind,source="$PWD/resources/datafile/spring_application.yaml",target="$TARGET_SPRING_CONFIG" \ + -e "JAVA_TOOL_OPTIONS=-agentlib:jdwp=transport=dt_socket,address=*:8000,server=y,suspend=n" \ + -e "CONFIG_BINDING_SERVICE=0.0.0.0" \ + -e "CONFIG_BINDING_SERVICE_SERVICE_PORT=10000" \ + -e "CBS_CLIENT_CONFIG_PATH=$TARGET_CONFIG_PATH" \ + --add-host "dmaap-dr-node:$DR_NODE_IP" \ + --add-host "dmaap-dr-prov:$DR_PROV_IP" \ + --network=development_pmmapper-network \ + --name=datafile-dev $IMAGE |