Skip to content

Conversation

@skatsubo
Copy link
Collaborator

@skatsubo skatsubo commented Sep 11, 2025

Description

JRE in devcontainer dockerfile (required for "make open-api") cannot be installed since switching to Trixie (#21786, immich-app/base-images#264 - see here why testing/sid sources are disabled).

E: Package 'openjdk-11-jre-headless' has no installation candidate

I can think of the following options:

  • This PR: switch to newer JRE from default Trixie packaging
  • Alternatively, re-add testing/sid to keep java 11 if it makes sense (installation size: 11 - 170MB, 21 - 200MB, 25 - 240MB)
  • Do not add java package 😛 assuming whoever needs it can install it upon encountering "/bin/sh: java: command not found"

How Has This Been Tested?

I've run make open-api on versions 11, 21, 25. They all produce the same output in open-api and mobile/openapi. As expected.

Unrelated

There are a few more missing deps. But this is for the base-images repo, I guess.

  • curl - prevents devcontainer frontend from starting
  • (arm64) libdrm2 and libx265 - non-fatal; ffmpeg/ffprobe fails when generating thumbnails
Missing deps info

curl

Waiting for api server...
/immich-devcontainer/container-start-frontend.sh: line 20: curl: command not found

(arm64) libdrm2 and libx265

/usr/bin/ffprobe: error while loading shared libraries: libdrm.so.2: cannot open shared object file: No such file or directory
/usr/bin/ffprobe: error while loading shared libraries: libx265.so.215: cannot open shared object file: No such file or directory

docker exec immich_server sudo apt-get install -y --no-install-recommends libdrm2 libx265-215
docker exec immich_server ldd /usr/bin/ffprobe | egrep 'not|libdrm|libx265'
	libdrm.so.2 => /lib/aarch64-linux-gnu/libdrm.so.2 (0x0000ffffa4560000)
	libx265.so.215 => /lib/aarch64-linux-gnu/libx265.so.215 (0x0000ffffa19b0000)

UPD

Added curl to this PR as suggested by @Chuckame

@skatsubo skatsubo changed the title fix(server): fix devcontainer JRE installation in Trixie fix(server): fix devcontainer JRE and curl in Trixie Sep 14, 2025
@skatsubo skatsubo force-pushed the fix/devcontainer-jre branch from 9e73830 to 4fb0ff9 Compare September 20, 2025 22:49
@skatsubo
Copy link
Collaborator Author

Force pushed to resolve conflict: recently Dockerfile was split in two - prod and dev.

@midzelis
Copy link
Collaborator

This PR and #22194 overlap a bit

@skatsubo skatsubo closed this Sep 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants