Skip to content

Commit caaa09b

Browse files
Merge branch 'main' into fix/memory-arrow-nav
2 parents a989070 + ee98e69 commit caaa09b

File tree

1,550 files changed

+139809
-113292
lines changed

Some content is hidden

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

1,550 files changed

+139809
-113292
lines changed

.devcontainer/devcontainer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"immich-server",
66
"redis",
77
"database",
8-
"immich-machine-learning"
8+
"immich-machine-learning",
9+
"init"
910
],
1011
"dockerComposeFile": [
1112
"../docker/docker-compose.dev.yml",

.devcontainer/mobile/container-compose-overrides.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ services:
44
target: dev-container-mobile
55
environment:
66
- IMMICH_SERVER_URL=http://127.0.0.1:2283/
7-
- IMMICH_MEDIA_LOCATION=/data
87
volumes: !override # bind mount host to /workspaces/immich
98
- ..:/workspaces/immich
109
- cli_node_modules:/workspaces/immich/cli/node_modules

.devcontainer/server/container-common.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,11 @@ fix_permissions() {
4949

5050
log "Fixing permissions for ${IMMICH_WORKSPACE}"
5151

52-
run_cmd sudo find "${IMMICH_WORKSPACE}/server/upload" -not -path "${IMMICH_WORKSPACE}/server/upload/postgres/*" -not -path "${IMMICH_WORKSPACE}/server/upload/postgres" -exec chown node {} +
53-
5452
# Change ownership for directories that exist
5553
for dir in "${IMMICH_WORKSPACE}/.vscode" \
54+
"${IMMICH_WORKSPACE}/server/upload" \
55+
"${IMMICH_WORKSPACE}/.pnpm-store" \
56+
"${IMMICH_WORKSPACE}/.github/node_modules" \
5657
"${IMMICH_WORKSPACE}/cli/node_modules" \
5758
"${IMMICH_WORKSPACE}/e2e/node_modules" \
5859
"${IMMICH_WORKSPACE}/open-api/typescript-sdk/node_modules" \

.devcontainer/server/container-compose-overrides.yml

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,24 +6,29 @@ services:
66
hostname: immich-dev
77
environment:
88
- IMMICH_SERVER_URL=http://127.0.0.1:2283/
9-
- IMMICH_MEDIA_LOCATION=/data
109
volumes: !override
1110
- ..:/workspaces/immich
12-
- cli_node_modules:/workspaces/immich/cli/node_modules
13-
- e2e_node_modules:/workspaces/immich/e2e/node_modules
14-
- open_api_node_modules:/workspaces/immich/open-api/typescript-sdk/node_modules
15-
- server_node_modules:/workspaces/immich/server/node_modules
16-
- web_node_modules:/workspaces/immich/web/node_modules
1711
- ${UPLOAD_LOCATION:-upload1-devcontainer-volume}${UPLOAD_LOCATION:+/photos}:/data
1812
- ${UPLOAD_LOCATION:-upload2-devcontainer-volume}${UPLOAD_LOCATION:+/photos/upload}:/data/upload
1913
- /etc/localtime:/etc/localtime:ro
20-
14+
- pnpm-store:/usr/src/app/.pnpm-store
15+
- server-node_modules:/usr/src/app/server/node_modules
16+
- web-node_modules:/usr/src/app/web/node_modules
17+
- github-node_modules:/usr/src/app/.github/node_modules
18+
- cli-node_modules:/usr/src/app/cli/node_modules
19+
- docs-node_modules:/usr/src/app/docs/node_modules
20+
- e2e-node_modules:/usr/src/app/e2e/node_modules
21+
- sdk-node_modules:/usr/src/app/open-api/typescript-sdk/node_modules
22+
- app-node_modules:/usr/src/app/node_modules
23+
- sveltekit:/usr/src/app/web/.svelte-kit
24+
- coverage:/usr/src/app/web/coverage
2125
immich-web:
2226
env_file: !reset []
23-
27+
init:
28+
env_file: !reset []
29+
command: sh -c 'find /data -maxdepth 1 ! -path "/data/postgres" -type d -exec chown ${UID:-1000}:${GID:-1000} {} + 2>/dev/null || true; for path in /usr/src/app/.pnpm-store /usr/src/app/server/node_modules /usr/src/app/server/dist /usr/src/app/.github/node_modules /usr/src/app/cli/node_modules /usr/src/app/docs/node_modules /usr/src/app/e2e/node_modules /usr/src/app/open-api/typescript-sdk/node_modules /usr/src/app/web/.svelte-kit /usr/src/app/web/coverage /usr/src/app/node_modules /usr/src/app/web/node_modules; do [ -e "$$path" ] && chown -R ${UID:-1000}:${GID:-1000} "$$path" || true; done'
2430
immich-machine-learning:
2531
env_file: !reset []
26-
2732
database:
2833
env_file: !reset []
2934
environment: !override
@@ -34,17 +39,10 @@ services:
3439
POSTGRES_HOST_AUTH_METHOD: md5
3540
volumes:
3641
- ${UPLOAD_LOCATION:-postgres-devcontainer-volume}${UPLOAD_LOCATION:+/postgres}:/var/lib/postgresql/data
37-
3842
redis:
3943
env_file: !reset []
40-
4144
volumes:
4245
# Node modules for each service to avoid conflicts and ensure consistent dependencies
43-
cli_node_modules:
44-
e2e_node_modules:
45-
open_api_node_modules:
46-
server_node_modules:
47-
web_node_modules:
4846
upload1-devcontainer-volume:
4947
upload2-devcontainer-volume:
5048
postgres-devcontainer-volume:

.devcontainer/server/container-start-backend.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
# shellcheck disable=SC1091
44
source /immich-devcontainer/container-common.sh
55

6+
log "Preparing Immich Nest API Server"
7+
log ""
8+
export CI=1
9+
run_cmd pnpm --filter immich install
10+
611
log "Starting Nest API Server"
712
log ""
813
cd "${IMMICH_WORKSPACE}/server" || (
@@ -11,7 +16,7 @@ cd "${IMMICH_WORKSPACE}/server" || (
1116
)
1217

1318
while true; do
14-
run_cmd node ./node_modules/.bin/nest start --debug "0.0.0.0:9230" --watch
19+
run_cmd pnpm --filter immich exec nest start --debug "0.0.0.0:9230" --watch
1520
log "Nest API Server crashed with exit code $?. Respawning in 3s ..."
1621
sleep 3
1722
done

.devcontainer/server/container-start-frontend.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@
33
# shellcheck disable=SC1091
44
source /immich-devcontainer/container-common.sh
55

6+
export CI=1
7+
log "Preparing Immich Web Frontend"
8+
log ""
9+
run_cmd pnpm --filter @immich/sdk install
10+
run_cmd pnpm --filter @immich/sdk build
11+
run_cmd pnpm --filter immich-web install
12+
613
log "Starting Immich Web Frontend"
714
log ""
815
cd "${IMMICH_WORKSPACE}/web" || (
@@ -16,7 +23,7 @@ until curl --output /dev/null --silent --head --fail "http://127.0.0.1:${IMMICH_
1623
done
1724

1825
while true; do
19-
run_cmd node ./node_modules/.bin/vite dev --host 0.0.0.0 --port "${DEV_PORT}"
26+
run_cmd pnpm --filter immich-web exec vite dev --host 0.0.0.0 --port "${DEV_PORT}"
2027
log "Web crashed with exit code $?. Respawning in 3s ..."
2128
sleep 3
2229
done

.devcontainer/server/container-start.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@ source /immich-devcontainer/container-common.sh
66
log "Setting up Immich dev container..."
77
fix_permissions
88

9-
log "Installing npm dependencies (node_modules)..."
10-
install_dependencies
11-
129
log "Setup complete, please wait while backend and frontend services automatically start"
1310
log
1411
log "If necessary, the services may be manually started using"

.github/.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
22.17.1
1+
22.19.0

.github/ISSUE_TEMPLATE/bug_report.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,11 @@ body:
6464
- label: Web
6565
- label: Mobile
6666

67+
- type: input
68+
attributes:
69+
label: Device make and model
70+
placeholder: Samsung S25 Android 16
71+
6772
- type: textarea
6873
validations:
6974
required: true

.github/package-lock.json

Lines changed: 0 additions & 28 deletions
This file was deleted.

0 commit comments

Comments
 (0)