sftp icon indicating copy to clipboard operation
sftp copied to clipboard

Support for arm

Open mineichen opened this issue 8 years ago • 10 comments

I'm currently using your sftp-Project on a ARM-Device. To do so, I forked your Github-Repository and created a new branch called "armhf-alpine", which is based on the "alpine" branch. I actually wanted to make a pull-Request, but I think it's not possible if I want to merge into a new branch.

Please create a new branch based on the "alpine" branch if you are interested to include it in your repository. It would be nice if you can update the Docker-Hub-Readme to provide instructions on how to build it.

Maybe you can even build a docker-image or upload the one provided by me "mineichen/sftp:armhf-alpine-3.6" for convenience, because ARM is not supported for automated builds as far as i know.

Thank you for all your work!

Regards, Markus

mineichen avatar Dec 11 '17 13:12 mineichen

I want to limit the number of branches that I have to maintain. If hub.docker.com does not support automated builds for ARM and there is just one line difference from the alpine branch, I think it's better to add some instructions in the README.md and maybe make a simple script that does what is necessary to start the build (e.g. making a copy of the Dockerfile with modification and preparing for build on ARM).

I don't have time to test any ARM setup before January

atmoz avatar Dec 11 '17 17:12 atmoz

Still busy at the moment.

If someone has the time, suggestions for build instructions/script (or something else) would be appreciated.

atmoz avatar Mar 12 '18 19:03 atmoz

Is there any progress made on this issue? I'm running an M1 Mac and would very much like to be able to run a arm64 version of the sftp server.

Hayo-Baan avatar Feb 22 '22 13:02 Hayo-Baan

@atmoz you should switch to the official qemu dockerx build actions

https://github.com/b2un0/docker-netcup-dyndns/blob/master/.github/workflows/container.yml

b2un0 avatar Mar 22 '22 21:03 b2un0

@HayoBaanAtHand the image from @kalioz works on M1 Macs.

harald-walker-sympower avatar Aug 03 '22 15:08 harald-walker-sympower

Thanks @harald-walker-sympower, I will investigate this!

Hayo-Baan avatar Aug 04 '22 05:08 Hayo-Baan

On Apple silicon Macs at least you can still run this in a docker container opened through a rosetta terminal.

Duplicate your preferred terminal application. Set the duplicate to open with rosetta (instructions here: https://support.apple.com/en-us/HT211861 )

Then you'll be able to run this container inside any shell of your new rosetta terminal application.

You can even run this docker container in a rosetta/intel shell while other containers remain running in a default arm64 shell. Cheers!

roball24 avatar Jan 04 '23 00:01 roball24

Hi @roball24, starting it from a Rosetta terminal instantiation is not even necessary; starting it from a normal Terminal also works just fine. And so does auto starting it when docker desktop starts (I created the container with --restart always)

Hayo-Baan avatar Jan 04 '23 17:01 Hayo-Baan

I forked this repository a few months ago to fix the (now fixed) automated build issue, as well as add SCP support and to build multi-platform images (including ARM). So, you can run it on the Raspberry Pi or Apple Silicon based machines. Docker Image - jmcombs/sftp & just in case you want to review the code: jmcombs/sftp

jmcombs avatar Mar 15 '23 17:03 jmcombs

finally i switch to https://github.com/drakkan/sftpgo

b2un0 avatar Mar 16 '23 08:03 b2un0