-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: bash scripts * pr feedback * wrong variable * ci: add shellcheck workflow * fix: missing scripts
- Loading branch information
Showing
13 changed files
with
65 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
g++ -shared -O3 -o libann.so -fuse-ld=gold -std=c++17 -I$ARMNN_PATH/include -larmnn -larmnnDeserializer -larmnnTfLiteParser -larmnnOnnxParser -L$ARMNN_PATH ann.cpp | ||
#!/usr/bin/env sh | ||
|
||
g++ -shared -O3 -o libann.so -fuse-ld=gold -std=c++17 -I"$ARMNN_PATH"/include -larmnn -larmnnDeserializer -larmnnTfLiteParser -larmnnOnnxParser -L"$ARMNN_PATH" ann.cpp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/bin/sh | ||
#!/usr/bin/env sh | ||
|
||
cd armnn-23.11/ | ||
cd armnn-23.11/ || exit | ||
g++ -o ../armnnconverter -O1 -DARMNN_ONNX_PARSER -DARMNN_SERIALIZER -DARMNN_TF_LITE_PARSER -fuse-ld=gold -std=c++17 -Iinclude -Isrc/armnnUtils -Ithird-party -larmnn -larmnnDeserializer -larmnnTfLiteParser -larmnnOnnxParser -larmnnSerializer -L../armnn src/armnnConverter/ArmnnConverter.cpp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
#!/usr/bin/env bash | ||
|
||
node /usr/src/app/node_modules/.bin/immich "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
#!/usr/bin/env sh | ||
/usr/src/app/start.sh immich-admin $1 | ||
|
||
/usr/src/app/start.sh immich-admin "$1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
#!/usr/bin/env bash | ||
|
||
node /usr/src/app/node_modules/.bin/nest start --debug "0.0.0.0:9230" --watch -- "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
#!/usr/bin/env bash | ||
node /usr/src/app/node_modules/.bin/jest --config e2e/$1/jest-e2e.json --runInBand | ||
|
||
node /usr/src/app/node_modules/.bin/jest --config e2e/"$1"/jest-e2e.json --runInBand |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,42 @@ | ||
#!/usr/bin/env sh | ||
|
||
export LD_PRELOAD=/usr/lib/$(arch)-linux-gnu/libmimalloc.so.2 | ||
lib_path="/usr/lib/$(arch)-linux-gnu/libmimalloc.so.2" | ||
export LD_PRELOAD="$lib_path" | ||
|
||
if [ "$DB_URL_FILE" ]; then | ||
export DB_URL=$(cat $DB_URL_FILE) | ||
DB_URL_CONTENT=$(cat "$DB_URL_FILE") | ||
export DB_URL="$DB_URL_CONTENT" | ||
unset DB_URL_FILE | ||
fi | ||
|
||
if [ "$DB_HOSTNAME_FILE" ]; then | ||
export DB_HOSTNAME=$(cat $DB_HOSTNAME_FILE) | ||
DB_HOSTNAME_CONTENT=$(cat "$DB_HOSTNAME_FILE") | ||
export DB_HOSTNAME="$DB_HOSTNAME_CONTENT" | ||
unset DB_HOSTNAME_FILE | ||
fi | ||
|
||
if [ "$DB_DATABASE_NAME_FILE" ]; then | ||
export DB_DATABASE_NAME=$(cat $DB_DATABASE_NAME_FILE) | ||
DB_DATABASE_CONTENT=$(cat "$DB_DATABASE_NAME_FILE") | ||
export DB_DATABASE_NAME="$DB_DATABASE_CONTENT" | ||
unset DB_DATABASE_NAME_FILE | ||
fi | ||
|
||
if [ "$DB_USERNAME_FILE" ]; then | ||
export DB_USERNAME=$(cat $DB_USERNAME_FILE) | ||
DB_USERNAME_CONTENT=$(cat "$DB_USERNAME_FILE") | ||
export DB_USERNAME="$DB_USERNAME_CONTENT" | ||
unset DB_USERNAME_FILE | ||
fi | ||
|
||
if [ "$DB_PASSWORD_FILE" ]; then | ||
export DB_PASSWORD=$(cat $DB_PASSWORD_FILE) | ||
DB_PASSWORD_CONTENT=$(cat "$DB_PASSWORD_FILE") | ||
export DB_PASSWORD="$DB_PASSWORD_CONTENT" | ||
unset DB_PASSWORD_FILE | ||
fi | ||
|
||
if [ "$REDIS_PASSWORD_FILE" ]; then | ||
export REDIS_PASSWORD=$(cat $REDIS_PASSWORD_FILE) | ||
REDIS_PASSWORD_CONTENT=$(cat "$REDIS_PASSWORD_FILE") | ||
export DB_PASSWORD="$REDIS_PASSWORD_CONTENT" | ||
unset REDIS_PASSWORD_FILE | ||
fi | ||
|
||
exec node /usr/src/app/dist/main $@ | ||
exec node /usr/src/app/dist/main "$@" |