-
Notifications
You must be signed in to change notification settings - Fork 0
/
greengrass-recipe.yaml
47 lines (47 loc) · 2.77 KB
/
greengrass-recipe.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
---
RecipeFormatVersion: "2020-01-25"
ComponentName: "com.example.GroundlightMonitoringNotificationServer"
ComponentVersion: "0.1.0"
ComponentType: "aws.greengrass.generic"
ComponentDescription: "Greengrass component for running Groundlight detectors."
ComponentPublisher: "Groundlight AI"
ComponentDependencies:
aws.greengrass.DockerApplicationManager:
VersionRequirement: ">=2.0.0 <2.1.0"
DependencyType: "HARD"
Manifests:
- Platform:
os: "linux"
architecture: "/amd64|aarch64/"
Lifecycle:
install: "docker container stop monitoring-notification-server-frontend; docker\
\ container stop monitoring-notification-server-backend; docker container rm\
\ monitoring-notification-server-frontend; docker container rm monitoring-notification-server-backend;\
\ echo \"Installed\""
run: "docker start monitoring-notification-server-frontend || docker run -d --name\
\ monitoring-notification-server-frontend -p 3000:3000 docker.io/groundlight/monitoring-notification-server-frontend:latest;\
\ docker start monitoring-notification-server-backend || docker run -d --name\
\ monitoring-notification-server-backend -p 8000:8000 -v {artifacts:path}:/app/api/external --device /dev/video0:/dev/video0\
\ --device /dev/video1:/dev/video1 --device /dev/video2:/dev/video2 --device\
\ /dev/video3:/dev/video3 --privileged docker.io/groundlight/monitoring-notification-server-backend:latest"
Artifacts:
- Uri: "docker:groundlight/monitoring-notification-server-backend:latest"
- Uri: "docker:groundlight/monitoring-notification-server-frontend:latest"
- Platform:
os: "linux"
architecture: "armv7"
Lifecycle:
install: "docker container stop monitoring-notification-server-frontend; docker\
\ container stop monitoring-notification-server-backend; docker container rm\
\ monitoring-notification-server-frontend; docker container rm monitoring-notification-server-backend;\
\ echo \"Installed\""
run: "docker start monitoring-notification-server-frontend || docker run -d --name\
\ monitoring-notification-server-frontend -p 3000:3000 docker.io/groundlight/monitoring-notification-server-frontend:armv7-latest;\
\ docker start monitoring-notification-server-backend || docker run -d --name\
\ monitoring-notification-server-backend -p 8000:8000 -v {artifacts:path}:/app/api/external --device /dev/video0:/dev/video0\
\ --device /dev/video1:/dev/video1 --device /dev/video2:/dev/video2 --device\
\ /dev/video3:/dev/video3 --privileged docker.io/groundlight/monitoring-notification-server-backend:armv7-latest"
Artifacts:
- Uri: "docker:groundlight/monitoring-notification-server-backend:armv7-latest"
- Uri: "docker:groundlight/monitoring-notification-server-frontend:armv7-latest"
Lifecycle: {}