mirror of
https://github.com/iio612/immich-native.git
synced 2026-04-17 12:01:05 +00:00
Release v1.131.1+3428a876c
Signed-off-by: Juhyung Park <qkrwngud825@gmail.com>
This commit is contained in:
@@ -8,7 +8,7 @@ This repository provides instructions and helper scripts to install [Immich](htt
|
|||||||
|
|
||||||
* This guide installs Immich to `/var/lib/immich`. To change it, replace it to the directory you want in this README and `install.sh`'s `$IMMICH_PATH`.
|
* This guide installs Immich to `/var/lib/immich`. To change it, replace it to the directory you want in this README and `install.sh`'s `$IMMICH_PATH`.
|
||||||
|
|
||||||
* The [install.sh](install.sh) script currently is using Immich v1.130.3. It should be noted that due to the fast-evolving nature of Immich, the install script may get broken if you replace the `$REV` to something more recent.
|
* The [install.sh](install.sh) script currently is using Immich v1.131.1. It should be noted that due to the fast-evolving nature of Immich, the install script may get broken if you replace the `$REV` to something more recent.
|
||||||
|
|
||||||
* `mimalloc` is deliberately disabled as this is a native install and sharing system library makes more sense.
|
* `mimalloc` is deliberately disabled as this is a native install and sharing system library makes more sense.
|
||||||
|
|
||||||
|
|||||||
29
install.sh
29
install.sh
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
set -xeuo pipefail
|
set -xeuo pipefail
|
||||||
|
|
||||||
REV=v1.130.3
|
REV=3428a876c798155a23204a41cfc8072e402fefce
|
||||||
|
|
||||||
IMMICH_PATH=/var/lib/immich
|
IMMICH_PATH=/var/lib/immich
|
||||||
APP=$IMMICH_PATH/app
|
APP=$IMMICH_PATH/app
|
||||||
@@ -63,7 +63,6 @@ rm -rf .git
|
|||||||
# Replace /usr/src
|
# Replace /usr/src
|
||||||
grep -Rl /usr/src | xargs -n1 sed -i -e "s@/usr/src@$IMMICH_PATH@g"
|
grep -Rl /usr/src | xargs -n1 sed -i -e "s@/usr/src@$IMMICH_PATH@g"
|
||||||
mkdir -p $IMMICH_PATH/cache
|
mkdir -p $IMMICH_PATH/cache
|
||||||
grep -RlE "\"/cache\"|'/cache'" | xargs -n1 sed -i -e "s@\"/cache\"@\"$IMMICH_PATH/cache\"@g" -e "s@'/cache'@'$IMMICH_PATH/cache'@g"
|
|
||||||
grep -RlE "\"/build\"|'/build'" | xargs -n1 sed -i -e "s@\"/build\"@\"$APP\"@g" -e "s@'/build'@'$APP'@g"
|
grep -RlE "\"/build\"|'/build'" | xargs -n1 sed -i -e "s@\"/build\"@\"$APP\"@g" -e "s@'/build'@'$APP'@g"
|
||||||
|
|
||||||
# immich-server
|
# immich-server
|
||||||
@@ -105,11 +104,7 @@ python3 -m venv $APP/machine-learning/venv
|
|||||||
cd ..
|
cd ..
|
||||||
)
|
)
|
||||||
cp -a \
|
cp -a \
|
||||||
machine-learning/ann \
|
machine-learning/immich_ml \
|
||||||
machine-learning/start.sh \
|
|
||||||
machine-learning/log_conf.json \
|
|
||||||
machine-learning/gunicorn_conf.py \
|
|
||||||
machine-learning/app \
|
|
||||||
$APP/machine-learning/
|
$APP/machine-learning/
|
||||||
|
|
||||||
# Install GeoNames
|
# Install GeoNames
|
||||||
@@ -160,16 +155,18 @@ cd $APP/machine-learning
|
|||||||
: "\${MACHINE_LEARNING_WORKERS:=1}"
|
: "\${MACHINE_LEARNING_WORKERS:=1}"
|
||||||
: "\${MACHINE_LEARNING_HTTP_KEEPALIVE_TIMEOUT_S:=2}"
|
: "\${MACHINE_LEARNING_HTTP_KEEPALIVE_TIMEOUT_S:=2}"
|
||||||
: "\${MACHINE_LEARNING_WORKER_TIMEOUT:=300}"
|
: "\${MACHINE_LEARNING_WORKER_TIMEOUT:=300}"
|
||||||
|
: "\${MACHINE_LEARNING_CACHE_FOLDER:=$IMMICH_PATH/cache}"
|
||||||
|
: "\${TRANSFORMERS_CACHE:=$IMMICH_PATH/cache}"
|
||||||
|
|
||||||
exec gunicorn app.main:app \
|
exec gunicorn immich_ml.main:app \\
|
||||||
-k app.config.CustomUvicornWorker \
|
-k immich_ml.config.CustomUvicornWorker \\
|
||||||
-c gunicorn_conf.py \
|
-c immich_ml/gunicorn_conf.py \\
|
||||||
-b "\$IMMICH_HOST":"\$IMMICH_PORT" \
|
-b "\$IMMICH_HOST":"\$IMMICH_PORT" \\
|
||||||
-w "\$MACHINE_LEARNING_WORKERS" \
|
-w "\$MACHINE_LEARNING_WORKERS" \\
|
||||||
-t "\$MACHINE_LEARNING_WORKER_TIMEOUT" \
|
-t "\$MACHINE_LEARNING_WORKER_TIMEOUT" \\
|
||||||
--log-config-json log_conf.json \
|
--log-config-json log_conf.json \\
|
||||||
--keep-alive "\$MACHINE_LEARNING_HTTP_KEEPALIVE_TIMEOUT_S" \
|
--keep-alive "\$MACHINE_LEARNING_HTTP_KEEPALIVE_TIMEOUT_S" \\
|
||||||
--graceful-timeout 0
|
--graceful-timeout 10
|
||||||
EOF
|
EOF
|
||||||
chmod 700 $APP/machine-learning/start.sh
|
chmod 700 $APP/machine-learning/start.sh
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user