-
Notifications
You must be signed in to change notification settings - Fork 0
/
EdgeImpulseLinuxRunnerServiceComponent.yaml
56 lines (56 loc) · 3.02 KB
/
EdgeImpulseLinuxRunnerServiceComponent.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
48
49
50
51
52
53
54
55
56
---
RecipeFormatVersion: '2020-01-25'
ComponentName: EdgeImpulseLinuxRunnerServiceComponent
ComponentVersion: '1.0.0'
ComponentDescription: 'Service Installer for Edge Impulse Linux Runner service'
ComponentPublisher: EdgeImpulse
ComponentConfiguration:
DefaultConfiguration:
Parameters: {
"node_version": "20.12.1",
"vips_version": "8.12.1",
"device_name": "MyEdgeImpulseDevice",
"launch": "runner",
"sleep_time_sec": 10,
"lock_filename": "/tmp/ei_lockfile_runner",
"gst_args": "__none__",
"eiparams": "--greengrass",
"iotcore_backoff": "5",
"iotcore_qos": "1",
"ei_bindir": "/usr/local/bin",
"ei_sm_secret_id": "EI_API_KEY",
"ei_sm_secret_name": "ei_api_key",
"ei_poll_sleeptime_ms": 2500,
"ei_local_model_file": "__none__",
"ei_shutdown_behavior": "__none__",
"ei_ggc_user_groups": "video audio input users",
"install_kvssink": "no",
"publish_inference_base64_image": "no",
"enable_cache_to_file": "no",
"cache_file_directory": "__none__"
}
Manifests:
- Platform:
os: all
Lifecycle:
setenv: {
"CONFIG_PARAMETERS": "{configuration:/Parameters}"
}
install:
RequiresPrivilege: true
Timeout: 9000
script: |-
chmod 755 {artifacts:path}/install.sh {artifacts:path}/run.sh {artifacts:path}/launch.sh {artifacts:path}/stop.sh
/bin/bash {artifacts:path}/install.sh {artifacts:path} {configuration:/Parameters/node_version} {configuration:/Parameters/vips_version} {configuration:/Parameters/install_kvssink} {configuration:/Parameters/ei_ggc_user_groups}
run:
script: |-
/bin/bash {artifacts:path}/run.sh {artifacts:path} {configuration:/Parameters/device_name} {configuration:/Parameters/launch} {configuration:/Parameters/sleep_time_sec} {configuration:/Parameters/lock_filename} {configuration:/Parameters/gst_args} {configuration:/Parameters/iotcore_backoff} {configuration:/Parameters/iotcore_qos} {configuration:/Parameters/ei_bindir} {configuration:/Parameters/ei_sm_secret_id} {configuration:/Parameters/ei_sm_secret_name} {configuration:/Parameters/ei_poll_sleeptime_ms} {configuration:/Parameters/ei_local_model_file} {configuration:/Parameters/ei_shutdown_behavior} {configuration:/Parameters/publish_inference_base64_image} {configuration:/Parameters/enable_cache_to_file} {configuration:/Parameters/cache_file_directory} {configuration:/Parameters/eiparams}
shutdown:
RequiresPrivilege: true
script: |-
/bin/bash {artifacts:path}/stop.sh {artifacts:path} {configuration:/Parameters/lock_filename}
Artifacts:
- URI: s3://YOUR_S3_ARTIFACT_BUCKET/artifacts/EdgeImpulseServiceComponent/1.0.0/install.sh
- URI: s3://YOUR_S3_ARTIFACT_BUCKET/artifacts/EdgeImpulseServiceComponent/1.0.0/run.sh
- URI: s3://YOUR_S3_ARTIFACT_BUCKET/artifacts/EdgeImpulseServiceComponent/1.0.0/launch.sh
- URI: s3://YOUR_S3_ARTIFACT_BUCKET/artifacts/EdgeImpulseServiceComponent/1.0.0/stop.sh