Local Execution - sonata-nfv/tng-analytics-engine GitHub Wiki
Run analytics engine as containers
make sure select ENV MONGO_DB localhost at tng-analytics-engine dockerfile
sudo docker build --no-cache -t tng-analytics-engine .
docker run --name son-mongo --net host mongo
docker run --name tng-analytics-engine --net host tng-analytics-engine
docker run --name analyticserver --net host analyticserver
Run analytics engine via docker compose
Configure accordingly the prometheus url at tng-analytics-engine Dockerfile
-if tests are enabled (by default they are not enabled)-
mvn -DPHYSIOG_URL='http://analyticserver' -DPROMETHEUS_URL='http://pre-int-vnv-bcn.5gtango.eu:9090' -DMONITORING_ENGINE='http://pre-int-vnv-bcn.5gtango.eu:8000' clean install
docker-compose build --no-cache tng-analytics-engine
docker-compose up
---notes for running locally the containers--- docker run -i -p 8086:80 -v asset-volume:/var/www/html -td tng-analytics-engine docker run -p 8085:8085 --volumes-from tng-analytics-results --name tng-analytics-engine tng-analytics-engine