Skip to content

Pull out media server and handling into separate container#389

Merged
Meow merged 8 commits intomasterfrom
media-server
Sep 25, 2025
Merged

Pull out media server and handling into separate container#389
Meow merged 8 commits intomasterfrom
media-server

Conversation

@liamwhite
Copy link
Contributor

@liamwhite liamwhite commented Dec 25, 2024

This PR changes Philomena to call image processing tools with an RPC client and server, to make upgrading them independently of Elixir easier and to allow them to have a separate memory space.

Calling the remote server is directly integrated into the app, replacing System.cmd/2 where it previously appeared for media processing. A standalone client utility is included but not compiled by default; using it, one can call the RPC server with (e.g.) mediaproc_client mediaproc:1500 execute-command -- file --mime-type -b image.png

If you are not deploying using docker, you should compile mediaproc_server and run it as a systemd service.

@liamwhite liamwhite force-pushed the media-server branch 6 times, most recently from 0aa8ca6 to 7a54049 Compare January 12, 2025 19:07
@Meow
Copy link
Member

Meow commented Sep 24, 2025

why not use alpine as base for mediaproc dockerfile?

@liamwhite
Copy link
Contributor Author

why not use alpine as base for mediaproc dockerfile?

It was designed as a base for #401. musl libc is completely incompatible with PyTorch / libtorch and impossible to reconcile. glibc (as used in the rust image base) works fine.

@Meow Meow marked this pull request as ready for review September 24, 2025 16:00
@Meow Meow merged commit 54b6c0c into master Sep 25, 2025
12 checks passed
@liamwhite liamwhite deleted the media-server branch September 25, 2025 12:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants