Make configurable the start arguments for ADML
[anna.git] / example / diameter / launcher / resources / rest_api / ct / ct.sh
index 0f9fd18..fc69e8f 100755 (executable)
@@ -51,6 +51,12 @@ if [ "${opt}" = "y" ]
 then
   docker kill ${SVC_NAME} &>/dev/null
   docker kill ${SVC_NAME}-debug &>/dev/null
+
+  echo "Optimize for system test (disable traffic logs and set warning level for traces) (y/n) [n]:"
+  read opt
+  [ -z "${opt}" ] && opt=n
+  [ "${opt}" = "y" ] && EXTRA_ARGUMENTS=st
+
   cid=$(docker run --rm -d -p ${PORT}:${PORT} --name ${cname} anna-adml-http:${version} ${EXTRA_ARGUMENTS} >/dev/null)
   [ $? -ne 0 ] && exit 1
   echo "Container id: ${cid} (deployed as '${cname}')"