Skip to content

Commit fc9746c

Browse files
committed
changed flow_creds mount to allow editing
1 parent 51898e0 commit fc9746c

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

metro-ai-suite/metro-vision-ai-app-recipe/compose-scenescape.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ services:
5858
- scenescape
5959
volumes:
6060
- ./${SAMPLE_APP}/src/node-red/flows.json:/data/flows.json
61-
- ./${SAMPLE_APP}/src/node-red/flows_cred.json:/data/flows_cred.json
61+
- ./${SAMPLE_APP}/src/node-red/flows_cred.json:/tmp/flows_cred.json
6262
- ./${SAMPLE_APP}/src/node-red/settings.js:/data/settings.js
6363
- ./${SAMPLE_APP}/src/node-red/install_package.sh:/data/install_package.sh
6464
- node-red-node-modules:/data/node_modules
@@ -76,7 +76,8 @@ services:
7676
"/bin/bash",
7777
"-e",
7878
"-c",
79-
"sed -i \"s/<influx-api-token>/$(cat /run/secrets/influxdb2-admin-token)/g\" /data/flows_cred.json && \
79+
"cp /tmp/flows_cred.json /data/flows_cred.json && \
80+
sed -i \"s/<influx-api-token>/$(cat /run/secrets/influxdb2-admin-token)/g\" /data/flows_cred.json && \
8081
bash /data/install_package.sh && \
8182
/usr/src/node-red/entrypoint.sh",
8283
]
@@ -165,9 +166,9 @@ services:
165166
devices:
166167
- "/dev/dri:/dev/dri"
167168
device_cgroup_rules:
168-
- 'c 189:* rmw'
169-
- 'c 209:* rmw'
170-
- 'a 189:* rwm'
169+
- "c 189:* rmw"
170+
- "c 209:* rmw"
171+
- "a 189:* rwm"
171172
group_add:
172173
- "109"
173174
- "110"

0 commit comments

Comments
 (0)