morphy2k / rss-forwarder

Checks RSS feeds for new entries and forwards them
MIT License
41 stars 5 forks source link

arm64 build #175

Closed joryirving closed 5 months ago

joryirving commented 5 months ago

Currently I see that the rss-forwarder is x86_64 only. Is there a possibility of adding an image build for arm64?

morphy2k commented 5 months ago

For which platform exactly? Linux?

joryirving commented 5 months ago

Yes. I'm trying to run this on a raspberry pi.

morphy2k commented 5 months ago

I could cross-compile, but unfortunately I have no way of testing it on the platform to make sure it really works.

I will take a closer look at this when I get the chance. Alternatively, you can install Rust on your Raspberry Pi and compile it yourself.

# Install the Rust toolchain
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

# Compile and install rss-forwarder
cargo install rss-forwarder
# Or
# Compile and install the latest pre-release
cargo install rss-forwarder@0.7.0-beta.2

Let me know if it works.

joryirving commented 5 months ago

Tried building on 0.6.1, and got this: rss-forwarder: error while loading shared libraries: libssl.so.3: cannot open shared object file: No such file or directory

Tried building on 0.7.0-beta.2 and got this: rss-forwarder: /lib/aarch64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by rss-forwarder)

Using this dockerfile: https://github.com/LilDrunkenSmurf/containers/blob/main/apps/rss-forwarder/Dockerfile

morphy2k commented 5 months ago

I just noticed that I forgot to update the Dockerfile that you probably used as a reference.

Line 1

- FROM rust:1.75.0 as builder
+ FROM rust:1.75.0-bookworm as builder

and line 26

- FROM gcr.io/distroless/cc-debian11
+ FROM gcr.io/distroless/cc-debian12

needs to be updated

joryirving commented 5 months ago

That worked! It's happily running on my RPis. Thanks!

morphy2k commented 5 months ago

There will probably be an official ARM64 image and a binary from the next release. See #181

morphy2k commented 5 months ago

I have just released v0.7.0-beta.3, which comes with a linux/arm64 image. In addition, a binary is included with the release.

joryirving commented 5 months ago

I can confirm the image is working wonderfully on arm64. Thanks so much!