Anki/docs
Jean Khawand 83fe301c1c
Add distroless Dockerfile and implement internal health check (#3366)
- rslib(http_server): add `is_running()` method
- rslib(sync): introduce `--healthcheck` argument for health probe in distroless
- doc(syncserver): add table comparing Dockerfile and Dockerfile.distroless
- Expand cross-platform support with distroless
- add `Dockerfile.distroless`

- Dockerfile: bump rust `1.79` to `1.80.1`
- Dockerfile: bump alpine `3.20` to `3.20.2`

Note: Implemented an internal health check because distroless images do not include curl, which is used to reduce image size and attack surface. For more details, see https://blog.sixeyed.com/docker-healthchecks-why-not-to-use-curl-or-iwr/
https://github.com/GoogleContainerTools/distroless

fix: failed: check:format:rust

typo

remove extra space

fix failed:check:format:rust

update doc

fetch `host` and `port` using envy

fix: failed: check:format:rust

Update doc + add dockerignore

- dockerignore: This helps avoid sending unwanted files and directories to the builder
- add new line
- I am still experimenting cross platform compilation, I am getting
4.337 From https://github.com/ankitects/rust-url
4.337  * [new ref]         bb930b8d089f4d30d7d19c12e54e66191de47b88 -> refs/commit/bb930b8d089f4d30d7d19c12e54e66191de47b88
4.397 error: failed to get `percent-encoding-iri` as a dependency of package `anki v0.0.0 (/app/rslib)`

still checking what could be the issue

fix: failed: check:format:dprint
2024-08-29 17:05:33 +07:00
..
docker Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
syncserver Add distroless Dockerfile and implement internal health check (#3366) 2024-08-29 17:05:33 +07:00
architecture.md Updated permalink to architecture visualization (#2001) 2022-08-05 14:47:38 +10:00
build.md Migrate pylib/anki qt/aqt to group syntax (eg pylib:anki) 2023-06-15 17:17:55 +10:00
contributing.md Remove outdated comments in contributing, and mention refactoring 2024-08-10 18:43:11 +07:00
development.md Mention missing libraries 2024-04-03 14:41:28 +07:00
editing.md Minor Rust cleanups (#2272) 2022-12-16 21:40:27 +10:00
linux.md Update instructions for Debian 12 2024-04-04 16:34:57 +07:00
mac.md Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
ninja.md Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
protobuf.md Migrate to protobuf-es (#2547) 2023-06-14 22:47:37 +10:00
windows.md Tweaks to Windows build instructions 2023-11-20 11:59:08 +10:00