SinTan1729 / chhoto-url

A simple, blazingly fast, selfhosted URL shortener with no unnecessary features; written in Rust.
https://hub.docker.com/r/sintan1729/chhoto-url
MIT License
142 stars 15 forks source link

ARM support? #9

Closed halictuz closed 7 months ago

halictuz commented 7 months ago

Hi. Great project.

Is there a chance to have a docker for arm/arm64 ? Would love to run this on RPI or certain arm vps.

Thanks for your work

greetings

SinTan1729 commented 7 months ago

Hi. In theory, it should be as easy as adding an extra build target. But I don't have any arm devices to build or test on. I can cross-compile, but that won't be ideal in terms of performance. I can give you build instructions if you want to build the images on the machine yourself.

Edit: It might be simple to do it using cross-rs. If it turns out to be not much of a hassle, I'll start pushing multi-arch images. In the meantime, can you test the image on the dev tag? It's an experimental arm64 image. If possible, let me know whether it works correctly or not.

halictuz commented 7 months ago

Hi. In theory, it should be as easy as adding an extra build target. But I don't have any arm devices to build or test on. I can cross-compile, but that won't be ideal in terms of performance. I can give you build instructions if you want to build the images on the machine yourself.

Edit: It might be simple to do it using cross-rs. If it turns out to be not much of a hassle, I'll start pushing multi-arch images. In the meantime, can you test the image on the dev tag? It's an experimental arm64 image. If possible, let me know whether it works correctly or not.

Cool! Gonna test it when I am at home tomorrow. Can't test it earlier. Thanks for the help and effort! I will report back tomorrow!

SinTan1729 commented 7 months ago

Hi @halictuz, did you manage to do some testing?

SinTan1729 commented 7 months ago

I'll start uploading the arm build, so closing this issue. If you're having any issues with the builds, feel free to reopen it.