X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=docker-proj%2Fscripts%2Fpush-to-file-ready-topic.sh;fp=docker-proj%2Fscripts%2Fpush-to-file-ready-topic.sh;h=025b0c6665b845c27b7c8d9e793232300f3ed0c8;hb=6bf63a18d595d40ed169e79e681fc526a400aa40;hp=0000000000000000000000000000000000000000;hpb=76718ae51764d0a644565f967c4a8ce40f6be4af;p=nonrtric%2Fplt%2Franpm.git diff --git a/docker-proj/scripts/push-to-file-ready-topic.sh b/docker-proj/scripts/push-to-file-ready-topic.sh new file mode 100755 index 0000000..025b0c6 --- /dev/null +++ b/docker-proj/scripts/push-to-file-ready-topic.sh @@ -0,0 +1,45 @@ +#!/bin/bash + +# ============LICENSE_START=============================================== +# Copyright (C) 2023 Nordix Foundation. 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================================================= +# +SD=$(dirname -- "$0") +echo "${0##*/} script-home: "$SD +cd $SD +CWD=$PWD + + +NODE_COUNT=$1 +EVT_COUNT=$2 +NODE_NAME_BASE=$3 +FILE_EXT=$4 +SRV_COUNT=$5 + +print_usage() { + echo "Usage: push-to-file-ready-topic.sh " + exit 1 +} +if [ $# -lt 5 ]; then + print_usage +fi + +chmod +x kafka-client-send-file-ready.sh +docker cp kafka-client-send-file-ready.sh common-kafka-1-1:/tmp/ + +docker exec -it common-kafka-1-1 /tmp/kafka-client-send-file-ready.sh $NODE_COUNT $EVT_COUNT $NODE_NAME_BASE $FILE_EXT $SRV_COUNT + +echo done +