-
Notifications
You must be signed in to change notification settings - Fork 478
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build for 'arm64' and 'armhf' #285
base: main
Are you sure you want to change the base?
Conversation
I'm getting a local issue where there's some missing libraries in the built image - I'm not sure if it's just something on my machine, but I thought it should be mentioned in case it needs to get looked at before a merge. |
78f1157
to
97541af
Compare
Hey, can you elaborate on that? Is it TLS related? BTW, @rucciva has changed the dockerfile to another base, which should solve the TLS problem. Would you mind test it again? It will be great to publish docker image for arm platforms. Thanks for looking into this! |
Thanks for the update @rapiz1!
I haven't needed the images outside of
Went ahead and did that, let me know if there's anything else that'd need to be done. This PR's pretty tiny at this point too, so feel free to just make the changes yourself if there's something else that needs fixed up. |
Unfortunately I don't have a platform to test this as well :( |
I do have the Raspberry Pi still @rapiz1, I won't be able to use it until tomorrow but I can get this all tested then. |
Oracle offers a free ARM Based VPS on their Free Tier. Might come in handy in case you don't have an ARM based platform to test on :) Alternatively, Hetzner offers an ARM based VPS as low as € 0.007 / hour. |
@sunmy2019 this is a low hanging fruit that could be very useful to many users. It would be great if you're able to look into this. |
@rapiz1 I have build the docker image for an linux/arm64 machine and it seems to be running fine. Is there anything specific i should test to get this merged? :) |
Would also love this for oracle free tier. |
Co-authored-by: Chuckame <[email protected]>
We just tested building upstream We would love to see this PR merged (and maybe squashed), so we can use container images rather than manual builds on our server. Our current setup is: services:
rathole:
#image: docker.io/rapiz1/rathole:latest
build: https://github.com/rapiz1/rathole.git#main
command: --server /app/server.toml
restart: always
deploy:
resources:
limits:
cpus: "1"
memory: "1g"
ports:
- "2333:2333"
- "65201:65201"
volumes:
- ./server.secret.toml:/app/server.toml:ro |
See
hwittenborn/rathole#6142076855
for the test run I did with these changes. Also note that the commit used in that run has been removed from a force push (to allow this PR to be made), though the commit can be found here:hwittenborn/rathole:9c5e606e7f3ff52e36b63c26d5851fcf0f5715b9
.I have
cargo
being installed viaapk
as therust:alpine
image doesn't currently build for thelinux/armhf
Docker platform (see rust-lang/docker-rust#142).Closes #141.