Skip to content
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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Conversation

hwittenborn
Copy link

@hwittenborn hwittenborn commented Sep 12, 2023

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 via apk as the rust:alpine image doesn't currently build for the linux/armhf Docker platform (see rust-lang/docker-rust#142).

Closes #141.

@hwittenborn
Copy link
Author

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.

@rapiz1 rapiz1 force-pushed the main branch 8 times, most recently from 78f1157 to 97541af Compare October 1, 2023 09:13
@rapiz1
Copy link
Owner

rapiz1 commented Oct 1, 2023

I'm getting a local issue where there's some missing libraries in the built image

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!

@hwittenborn
Copy link
Author

Thanks for the update @rapiz1!

Hey, can you elaborate on that? Is it TLS related?

I haven't needed the images outside of amd64 as of recent (I needed armhf previously for my raspberry PI, which I no longer use), and I've since forgotten on the specifics that was causing the breakage.

BTW, @rucciva has changed the dockerfile to another base, which should solve the TLS problem.

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.

@rapiz1
Copy link
Owner

rapiz1 commented Oct 1, 2023

Unfortunately I don't have a platform to test this as well :(

@hwittenborn
Copy link
Author

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.

@Freekers
Copy link

Freekers commented Oct 7, 2023

Unfortunately I don't have a platform to test this as well :(

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.

@rapiz1
Copy link
Owner

rapiz1 commented Feb 14, 2024

@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.

@BrammyS
Copy link

BrammyS commented Jun 12, 2024

@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? :)

@fightforlife
Copy link

Would also love this for oracle free tier.

@M4GNV5
Copy link

M4GNV5 commented Jul 16, 2024

We just tested building upstream main branch on Debian 12 on a Hetzner ARM64 machine. Everything works out of the box. So this looks ready to be merged?
Let us know if there is something specific to test. @dominikbayerl and I can provide log files etc. if required.

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

M4GNV5 added a commit to securityinmobility/cornelius.security.science that referenced this pull request Jul 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

能否提供一下 docker arm 的镜像?
7 participants