feat: Add optimized build profile and Debian packaging for ARMv6#1128
feat: Add optimized build profile and Debian packaging for ARMv6#1128tomoyan596 wants to merge 4 commits intoontola:developfrom
Conversation
cli/Cargo.toml
Outdated
| [package.metadata.deb] | ||
| extended-description = "Atomic CLI - A command-line interface for headless CMS and real-time databases." | ||
| maintainer = "tomoyan <https://www.tomoyan.net/>" | ||
| copyright = "2025, tomoyan" |
There was a problem hiding this comment.
No this is not how copyright works :P I wrote pretty much the entire repo, you can't claim ownership with one PR that adds some metadata.
|
Hey @tomoyan596 thanks for the PR! Looks like this helps in making it more accessible indeed. And while I do want to credit you where credit is due, I don't think it makes sense for you to be listed as copyright owner & maintainer ;) |
|
Hi @joepio, My apologies for the metadata blunder—I've just pushed a fix!
I've re-tested the Debian package on a Raspberry Pi Zero WH (DietPi), and it's working perfectly. Thanks for the feedback! |
|
I noticed atomic-cli was missing the homepage field, so I added it to keep the Debian metadata consistent with atomic-server. |
Summary
This PR introduces a dedicated build profile and Debian packaging setup to support low-resource devices, specifically tested on Raspberry Pi Zero WH (ARMv6).
Key Changes
dietpi): Optimized for binary size (opt-level = 'z',LTO,strip = true). Reduces the server binary size from ~66MB to ~45MB (-31%).package.metadata.debconfiguration for bothatomic-serverandatomic-cli./etc/atomic-server/atomic-server.env) for professional service management.atomic-serversystem user (created viapostinst).postinstscript automatically setsATOMIC_DOMAINto the system's hostname upon installation.Motivation
Standard release builds are somewhat heavy for older SBCs with limited RAM (e.g., 512MB). This PR makes Atomic Data more accessible for edge computing and lightweight server use cases.
Related to #151.
Verified on: Fedora 42 (Cross-build) -> DietPi (Raspberry Pi Zero WH)
The instructions are written in Japanese, but more detailed information is available on the following website, so please refer to it if you wish.
https://www.tomoyan.net/rust/cross-compilation_for_dietpi