Shad Ansari | a717099 | 2022-04-15 21:36:01 +0000 | [diff] [blame^] | 1 | [Unit] |
| 2 | Description=Person Detection App Container |
| 3 | After=docker.service |
| 4 | Requires=docker.service |
| 5 | |
| 6 | [Service] |
| 7 | StandardOutput=file:/var/log/person-detection.log |
| 8 | StandardError=file:/var/log/person-detection.log |
| 9 | TimeoutStartSec=0 |
| 10 | ExecStartPre=-/usr/bin/docker stop %n |
| 11 | ExecStartPre=-/usr/bin/docker rm %n |
| 12 | ExecStart=/usr/bin/docker run -u root:root --rm --name %n --privileged --network host registry.aetherproject.org/aether-apps/person-detection-app:master --url "http://roc.demo.aetherproject.net/aether-roc-api/aether/v2.0.0/connectivity-service-v2/" --keycloak "http://keycloak.demo.aetherproject.net/auth/realms/aether/protocol/openid-connect/token" --enterprise "ase-4g-enterprise" --site "ase-site-4g" --devicegroup "ase-4g-device-group2" --user "onfadmin" --password "changeme" --num 1 |
| 13 | ExecStop=/usr/bin/docker stop %n |
| 14 | |
| 15 | [Install] |
| 16 | WantedBy=multi-user.target |