Skip to content

Commit 0df61af

Browse files
Move compose variables into brick config file (#38)
* Move compose variables into brick config file --------- Co-authored-by: Stefano Torneo <s.torneo@arduino.cc>
1 parent a65829c commit 0df61af

File tree

28 files changed

+162
-61
lines changed

28 files changed

+162
-61
lines changed

src/arduino/app_bricks/audio_classification/brick_compose.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# EI_AUDIO_CLASSIFICATION_MODEL = path to the model file
2-
# CUSTOM_MODEL_PATH = path to the custom model directory
31
services:
42
ei-audio-classifier-runner:
53
image: ${DOCKER_REGISTRY_BASE:-ghcr.io/arduino/}app-bricks/ei-models-runner:0.6.0

src/arduino/app_bricks/audio_classification/brick_config.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,16 @@ requires_model: true
99
model: glass-breaking
1010
model_configuration_variables:
1111
- EI_AUDIO_CLASSIFICATION_MODEL
12+
variables:
13+
- name: EI_AUDIO_CLASSIFICATION_MODEL
14+
description: Path to the model file
15+
hidden: true
16+
default_value: /models/ootb/ei/glass-breaking.eim
17+
- name: CUSTOM_MODEL_PATH
18+
description: Path to the custom model directory
19+
hidden: true
20+
default_value: /home/arduino/.arduino-bricks/ei-models
21+
- name: BIND_ADDRESS
22+
description: Bind address
23+
hidden: true
24+
default_value: 127.0.0.1

src/arduino/app_bricks/dbstorage_tsstore/brick_compose.yaml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
# BIND_ADDRESS = external container address
2-
# BIND_PORT = container port
3-
# DB_USERNAME = Edge Impulse project API key
4-
# DB_PASSWORD = Database password
5-
# INFLUXDB_ADMIN_TOKEN = InfluxDB admin token
61
services:
72
dbstorage-influx:
83
image: influxdb:2.7
@@ -12,7 +7,7 @@ services:
127
max-size: "5m"
138
max-file: "2"
149
ports:
15-
- "${BIND_ADDRESS:-127.0.0.1}:${BIND_PORT:-8086}:8086"
10+
- "${BIND_ADDRESS:-127.0.0.1}:8086:8086"
1611
volumes:
1712
- "${APP_HOME:-.}/data/influx-data:/var/lib/influxdb2"
1813
environment:

src/arduino/app_bricks/dbstorage_tsstore/brick_config.yaml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,18 @@ id: arduino:dbstorage_tsstore
22
name: Database - Time Series
33
description: "Simplified time series database storage layer for Arduino sensor samples built on top of InfluxDB."
44
requires_container: true
5-
category: storage
5+
category: storage
6+
variables:
7+
- name: DB_USERNAME
8+
description: Database username
9+
default_value: admin
10+
- name: DB_PASSWORD
11+
description: Database password
12+
default_value: Arduino15
13+
- name: INFLUXDB_ADMIN_TOKEN
14+
description: InfluxDB admin token
15+
default_value: 392edbf2-b8a2-481f-979d-3f188b2c05f0
16+
- name: BIND_ADDRESS
17+
description: External container address
18+
hidden: true
19+
default_value: 127.0.0.1

src/arduino/app_bricks/image_classification/brick_compose.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# EI_CLASSIFICATION_MODEL = path to the model file
2-
# CUSTOM_MODEL_PATH = path to the custom model directory
31
services:
42
ei-classification-runner:
53
image: ${DOCKER_REGISTRY_BASE:-ghcr.io/arduino/}app-bricks/ei-models-runner:0.6.0

src/arduino/app_bricks/image_classification/brick_config.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,16 @@ requires_model: true
99
model: mobilenet-image-classification
1010
model_configuration_variables:
1111
- EI_CLASSIFICATION_MODEL
12+
variables:
13+
- name: EI_CLASSIFICATION_MODEL
14+
description: Path to the model file
15+
hidden: true
16+
default_value: /models/ootb/ei/mobilenet_v2_1.0_224_image_classification.eim
17+
- name: CUSTOM_MODEL_PATH
18+
description: Path to the custom model directory
19+
hidden: true
20+
default_value: /home/arduino/.arduino-bricks/ei-models
21+
- name: BIND_ADDRESS
22+
description: Bind address
23+
hidden: true
24+
default_value: 127.0.0.1

src/arduino/app_bricks/keyword_spotting/brick_compose.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# EI_KEYWORD_SPOTTING_MODEL = path to the model file
2-
# CUSTOM_MODEL_PATH = path to the custom model directory
31
services:
42
ei-keyword-spot-runner:
53
image: ${DOCKER_REGISTRY_BASE:-ghcr.io/arduino/}app-bricks/ei-models-runner:0.6.0

src/arduino/app_bricks/keyword_spotting/brick_config.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,16 @@ requires_model: true
1111
model: keyword-spotting-hey-arduino
1212
model_configuration_variables:
1313
- EI_KEYWORD_SPOTTING_MODEL
14+
variables:
15+
- name: EI_KEYWORD_SPOTTING_MODEL
16+
description: Path to the model file
17+
hidden: true
18+
default_value: /models/ootb/ei/keyword-spotting-hey-arduino.eim
19+
- name: CUSTOM_MODEL_PATH
20+
description: Path to the custom model directory
21+
hidden: true
22+
default_value: /home/arduino/.arduino-bricks/ei-models
23+
- name: BIND_ADDRESS
24+
description: Bind address
25+
hidden: true
26+
default_value: 127.0.0.1

src/arduino/app_bricks/motion_detection/brick_compose.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# EI_MOTION_DETECTION_MODEL = path to the model file
2-
# CUSTOM_MODEL_PATH = path to the custom model directory
31
services:
42
ei-motion-detection-runner:
53
image: ${DOCKER_REGISTRY_BASE:-ghcr.io/arduino/}app-bricks/ei-models-runner:0.6.0

src/arduino/app_bricks/motion_detection/brick_config.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,16 @@ requires_model: true
99
model: updown-wave-motion-detection
1010
model_configuration_variables:
1111
- EI_MOTION_DETECTION_MODEL
12+
variables:
13+
- name: EI_MOTION_DETECTION_MODEL
14+
description: Path to the model file
15+
hidden: true
16+
default_value: /models/ootb/ei/updown-wave-motion-detection.eim
17+
- name: CUSTOM_MODEL_PATH
18+
description: Path to the custom model directory
19+
hidden: true
20+
default_value: /home/arduino/.arduino-bricks/ei-models
21+
- name: BIND_ADDRESS
22+
description: Bind address
23+
hidden: true
24+
default_value: 127.0.0.1

0 commit comments

Comments
 (0)