Shad Ansari | ea2e1dd | 2022-06-09 12:37:37 -0700 | [diff] [blame] | 1 | # |
| 2 | # SPDX-FileCopyrightText: 2022-present Intel Corporation |
| 3 | # SPDX-FileCopyrightText: 2020-present Open Networking Foundation <info@opennetworking.org> |
| 4 | # SPDX-License-Identifier: Apache-2.0 |
| 5 | # |
| 6 | |
Shad Ansari | a717099 | 2022-04-15 21:36:01 +0000 | [diff] [blame] | 7 | [Unit] |
| 8 | Description=Person Detection App Container |
| 9 | After=docker.service |
| 10 | Requires=docker.service |
| 11 | |
| 12 | [Service] |
| 13 | StandardOutput=file:/var/log/person-detection.log |
| 14 | StandardError=file:/var/log/person-detection.log |
| 15 | TimeoutStartSec=0 |
| 16 | ExecStartPre=-/usr/bin/docker stop %n |
| 17 | ExecStartPre=-/usr/bin/docker rm %n |
| 18 | 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 |
| 19 | ExecStop=/usr/bin/docker stop %n |
| 20 | |
| 21 | [Install] |
| 22 | WantedBy=multi-user.target |