You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
lemmy/docker
Dessalines 55f84dd38a
Fixing proxy images (#4722)
* Adding an image_details table to store image dimensions.

- Adds an image_details table, which stores the height,
  width, and content_type for local and remote images.
- For LocalImages, this information already comes back with
  the upload.
- For RemoteImages, it calls the pictrs details endpoint.
- Fixed some issues with proxying non-image urls.
- Fixes #3328
- Also fixes #4703

* Running sql format.

* Running fmt.

* Don't fetch metadata in background for local API requests.

* Dont export remote_image table to typescript.

* Cleaning up validate.

* Dont proxy url.

* Fixing tests, fixing issue with federated thumbnails.

* Fix tests.

* Updating corepack, fixing issue.

* Refactoring image inserts to use transactions.

* Use select exists again.

* Fixing imports.

* Fix test.

* Removing pointless backgrounded metadata generation version.

* Removing public pictrs details route.

* Fixing clippy.

* Fixing proxy image fetching. Fixes #4703

- This extracts only the proxy image fixes from #4704, leaving off
  thumbnails.

* Fix test.

* Addressing PR comments.

* Address PR comments 2.

---------

Co-authored-by: SleeplessOne1917 <28871516+SleeplessOne1917@users.noreply.github.com>
1 month ago
..
federation Fixing proxy images (#4722) 1 month ago
Dockerfile chore(deps): update docker/dockerfile docker tag to v1.7 (#4650) 2 months ago
README.md fix: Cross-compilation to ARM64 (#4142) 7 months ago
docker-compose.yml Fixing proxy images (#4722) 1 month ago
docker_db_backup.sh make shebangs posix compliant (#2974) 1 year ago
docker_update.sh Avoid using proxy for pictrs requests (fixes #3489) (#4072) 8 months ago
lemmy.hjson Fix image_mode for docker lemmy.hjson (#4403) 5 months ago
nginx.conf Adding /version route. Fixes #2914 (#4059) 8 months ago
test_deploy.sh Adding current domain from settings to CORs. (#3231) 1 year ago

README.md

Building Lemmy Images

Lemmy's images are meant to be built on linux/amd64, but they can be executed on both linux/amd64 and linux/arm64.

To do so we need to use a cross toolchain whose goal is to build from amd64 to arm64.

Namely, we need to link the lemmy_server with pq and openssl shared libraries and a few others, and they need to be in arm64, indeed.

The toolchain we use to cross-compile is specifically tailored for Lemmy's needs, see the image repository.

References