Skip to content

Commit f06a222

Browse files
committed
Merge remote-tracking branch 'upstream/main' into sound-generator
2 parents 3115abb + 3b0658f commit f06a222

File tree

137 files changed

+776
-164
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

137 files changed

+776
-164
lines changed

Taskfile.dist.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ tasks:
8686
git ls-files |
8787
grep -Ev "(^|/)(docs|examples-internal|tools)/|\.(md|txt|json|yml|yaml|toml|gitignore|gitmodules|in|ini|eim)$" |
8888
sed 's/ /\\ /g' |
89-
xargs reuse annotate -r --skip-unrecognized --copyright-prefix 'spdx-string-c' --copyright 'ARDUINO SA <http://www.arduino.cc>' --year '2025' --license 'MPL-2.0'
89+
xargs reuse annotate -r --skip-unrecognized --copyright-prefix 'spdx-string-c' --copyright 'ARDUINO SRL (http://www.arduino.cc)' --exclude-year --license 'MPL-2.0'
9090
- reuse download --all
9191
- |
9292
licenses_dir="LICENSES"
Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# SPDX-FileCopyrightText: Copyright (C) 2025 ARDUINO SA <http://www.arduino.cc>
1+
# SPDX-FileCopyrightText: Copyright (C) ARDUINO SRL (http://www.arduino.cc)
22
#
33
# SPDX-License-Identifier: MPL-2.0
44

@@ -10,16 +10,18 @@ RUN set -ex; \
1010
groupadd -g 29 audio || true; \
1111
groupadd -g 991 render || true; \
1212
groupadd -g 1000 arduino || true; \
13-
useradd -u 1000 -g arduino -G audio,video,render -ms /bin/bash arduino;
13+
useradd -u 1000 -g arduino -G audio,video,render -ms /bin/bash arduino
1414

1515
# Add all EI OOTB models to the container with specific ownership
1616
COPY --chown=arduino:arduino ./models/ei-ootb-models/arm64/* /models/ootb/ei/
17+
COPY --chown=arduino:arduino ./src/start-runner.sh /home/arduino/start-runner.sh
1718

18-
USER arduino
19-
20-
WORKDIR /app
19+
RUN chmod +x /home/arduino/start-runner.sh
2120

21+
WORKDIR /home/arduino
2222
ENV HOME=/home/arduino
23+
24+
USER arduino
2325
ENV USER=arduino
2426

25-
ENTRYPOINT ["node", "/app/linux/node/build/cli/linux/runner.js"]
27+
ENTRYPOINT ["/home/arduino/start-runner.sh"]
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
#!/bin/bash
2+
3+
# SPDX-FileCopyrightText: Copyright (C) ARDUINO SRL (http://www.arduino.cc)
4+
#
5+
# SPDX-License-Identifier: MPL-2.0
6+
7+
NODE_COMMAND=("node" "/app/linux/node/build/cli/linux/runner.js" "$@")
8+
9+
trap_signal() {
10+
echo "Caught signal $1. Exiting wrapper immediately..."
11+
exit 0
12+
}
13+
14+
trap 'trap_signal TERM' TERM
15+
trap 'trap_signal INT' INT
16+
17+
while true; do
18+
echo "🚀 Starting EI inference runner..."
19+
20+
"${NODE_COMMAND[@]}"
21+
22+
EXIT_CODE=$?
23+
24+
# Check the exit code
25+
if [ $EXIT_CODE -eq 0 ]; then
26+
echo "✅ Application exited successfully (Exit Code: 0). Stopping restart loop."
27+
break
28+
else
29+
echo "⚠️ Application exited with error (Exit Code: $EXIT_CODE). Restarting in 1 seconds..."
30+
sleep 1
31+
fi
32+
done

containers/python-apps-base/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# SPDX-FileCopyrightText: Copyright (C) 2025 ARDUINO SA <http://www.arduino.cc>
1+
# SPDX-FileCopyrightText: Copyright (C) ARDUINO SRL (http://www.arduino.cc)
22
#
33
# SPDX-License-Identifier: MPL-2.0
44

containers/python-apps-base/run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/sh
22

3-
# SPDX-FileCopyrightText: Copyright (C) 2025 ARDUINO SA <http://www.arduino.cc>
3+
# SPDX-FileCopyrightText: Copyright (C) ARDUINO SRL (http://www.arduino.cc)
44
#
55
# SPDX-License-Identifier: MPL-2.0
66

containers/python-base/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# SPDX-FileCopyrightText: Copyright (C) 2025 ARDUINO SA <http://www.arduino.cc>
1+
# SPDX-FileCopyrightText: Copyright (C) ARDUINO SRL (http://www.arduino.cc)
22
#
33
# SPDX-License-Identifier: MPL-2.0
44

docs_generator/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# SPDX-FileCopyrightText: Copyright (C) 2025 ARDUINO SA <http://www.arduino.cc>
1+
# SPDX-FileCopyrightText: Copyright (C) ARDUINO SRL (http://www.arduino.cc)
22
#
33
# SPDX-License-Identifier: MPL-2.0
44

docs_generator/extractor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# SPDX-FileCopyrightText: Copyright (C) 2025 ARDUINO SA <http://www.arduino.cc>
1+
# SPDX-FileCopyrightText: Copyright (C) ARDUINO SRL (http://www.arduino.cc)
22
#
33
# SPDX-License-Identifier: MPL-2.0
44

docs_generator/markdown_writer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# SPDX-FileCopyrightText: Copyright (C) 2025 ARDUINO SA <http://www.arduino.cc>
1+
# SPDX-FileCopyrightText: Copyright (C) ARDUINO SRL (http://www.arduino.cc)
22
#
33
# SPDX-License-Identifier: MPL-2.0
44

docs_generator/runner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# SPDX-FileCopyrightText: Copyright (C) 2025 ARDUINO SA <http://www.arduino.cc>
1+
# SPDX-FileCopyrightText: Copyright (C) ARDUINO SRL (http://www.arduino.cc)
22
#
33
# SPDX-License-Identifier: MPL-2.0
44

0 commit comments

Comments
 (0)