Recent ae-adml-http image refactoring changed the
entrypoint omitting ADML arguments, now passed at
ct script.
Also, nginx proxy will expose ipv6 on same admin port 8074.
# Project version
set(VERSION_MAJOR 1)
set(VERSION_MINOR 0)
# Project version
set(VERSION_MAJOR 1)
set(VERSION_MINOR 0)
# Dynamic libraries not linked to build tree:
set(CMAKE_SKIP_RPATH TRUE)
# Dynamic libraries not linked to build tree:
set(CMAKE_SKIP_RPATH TRUE)
server {
listen 8074 http2;
server {
listen 8074 http2;
- listen [::]:8075 http2;
+ listen [::]:8074 http2 ipv6only=on;
#It is possible to enable another port for pure HTTP11:
#listen 8073;
#listen [::]:8073;
#It is possible to enable another port for pure HTTP11:
#listen 8073;
#listen [::]:8073;
Go to [ct](./ct) directory and execute:
1. pip3 install -r requirements.txt
Go to [ct](./ct) directory and execute:
1. pip3 install -r requirements.txt
-2. pytest *-or-* pytest -n <num|auto> (parallel execution)
\ No newline at end of file
+2. pytest *-or-* pytest -n <num|auto> (parallel execution)
PORT=$(echo ${ENDPOINT} | cut -d: -f3)
SVC_NAME=anna-adml-http
# Entrypoint arguments (ft/st):
PORT=$(echo ${ENDPOINT} | cut -d: -f3)
SVC_NAME=anna-adml-http
# Entrypoint arguments (ft/st):
-EXTRA_ARGUMENTS= # default is ft (function test: debug traces and traffic logs)
+ADML_ARGUMENTS="--services services.xml --cntDir counters --tmDir tm --cntRecordPeriod 60000 --logStatisticSamples none --reconnectionPeriod 10000 --httpServer 0.0.0.0:8000"
+#ADML_ARGUMENTS+=" --trace debug"
docker kill ${SVC_NAME} &>/dev/null
docker kill ${SVC_NAME}-debug &>/dev/null
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)
+ cid=$(docker run --rm -d -p ${PORT}:${PORT} --name ${cname} anna-adml-http:${version} ${ADML_ARGUMENTS} >/dev/null)
[ $? -ne 0 ] && exit 1
echo "Container id: ${cid} (deployed as '${cname}')"
fi
[ $? -ne 0 ] && exit 1
echo "Container id: ${cid} (deployed as '${cname}')"
fi