User Tools

Site Tools


toolsandtechnologies:docker_rdf-agent_deployment

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
toolsandtechnologies:docker_rdf-agent_deployment [2023/08/21 16:25] – created bosowskitoolsandtechnologies:docker_rdf-agent_deployment [2023/08/21 16:31] (current) bosowski
Line 1: Line 1:
-How to deploy a new version+====== How to deploy a new version ======
  
-## Before everything, ensure that docker is installed on the servers where agents are to be run. We have a playbook for this in server-confguration, which can be run via:+===== Before anything, ensure that docker is installed on the servers where agents are to be run. We have a playbook for this in server-confguration, which can be run via: =====
  
 <code> <code>
Line 17: Line 17:
 </code> </code>
  
-3. Ensure that each server/or a group if using the same agent have the correct token specified as variable:+Any properties used by rdfagent can be specified via the rdf_agent_env_vars map. Here is an example for airscan rdfagents: 
 + 
 +<code> 
 +[airscan:vars] 
 +[rdf_agent_env_vars] 
 +TASK_WORKERS=1 
 +MODEM_MANAGER_URL=http://host.docker.internal:5000 
 +NODE_EXPORTER_URL=http://host.docker.internal:10000/metrics 
 +PROM2JSON_PATH=/bin/prom2json 
 +</code> 
 + 
 +The defaults are quite sane, so this shouldn't be necessary in 99% of cases. 
 + 
 +3. Ensure that each server/or a group if using the same agent have the correct token specified as the rdf_access_token variable:
  
 <code> <code>
Line 26: Line 39:
 <code> <code>
 ansible-playbook rdf-agent-docker-deploy.yml -i ../env-configuration/qanova/hosts.ini -e version="REL-4.17.0.1" --vault-id @prompt --diff ansible-playbook rdf-agent-docker-deploy.yml -i ../env-configuration/qanova/hosts.ini -e version="REL-4.17.0.1" --vault-id @prompt --diff
 +</code>
 +
 +5. To view the running container do:
 +
 +<code>
 +docker ps
 +</code>
 +
 +If it's not running, you can do
 +<code>
 +docker ps -a
 +</code>
 +
 +To view logs:
 +<code>
 +docker logs <containerID/name>
 +</code>
 +
 +To view env variables etc do:
 +<code>
 +docker inspect <containerID/name>
 </code> </code>
toolsandtechnologies/docker_rdf-agent_deployment.1692631551.txt.gz · Last modified: 2023/08/21 16:25 by bosowski