openvscode-server icon indicating copy to clipboard operation
openvscode-server copied to clipboard

Mac M1 and 32 bit support

Open bigint opened this issue 5 years ago • 25 comments

It would be great if we have mac M1 and 32 bit support too 🙇🏻

bigint avatar Aug 27 '21 14:08 bigint

Hi, I interested in this feature too. May be we can discuss about our steps to make this true? I think we just need to recognize components, that require recompile to 32bit.

kolanski avatar Sep 28 '21 21:09 kolanski

Curious what is the benefit of 32bit? Most hardware these days is 64bit.

andymac4182 avatar Sep 28 '21 22:09 andymac4182

Curious what is the benefit of 32bit? Most hardware these days is 64bit.

Most Raspberry Pi’s run a 32-bit version of Debian. There’s a pretty big population of folks who run home servers w/ multiple docker containers, who might also want a dev environment running on there

vimeh avatar Sep 29 '21 01:09 vimeh

Please add M1 and raspberry pi support.

vimesh-shah avatar Sep 29 '21 03:09 vimesh-shah

can we have linux arm build please?

ayush--s avatar Sep 29 '21 07:09 ayush--s

yes +1 on the arm build too

anshuman852 avatar Sep 29 '21 16:09 anshuman852

+1

neuronick avatar Sep 30 '21 17:09 neuronick

I tried to build for ARM using releases repo Dockerfile, but the problem is that open server itself doesn't support arm as there are many amd64 dependencies. I hope that you can address that.

MohamedElashri avatar Sep 30 '21 20:09 MohamedElashri

+1 for a arm raspberry pi build

zdillon90 avatar Oct 02 '21 12:10 zdillon90

+1 arm64 for Raspberry too.

Jazb avatar Oct 04 '21 14:10 Jazb

there is an alternative build (with ARM64 support) at https://medium.com/@dictcp/self-hosting-your-vscode-online-ide-from-raspberry-pi-4-to-aws-graviton2-d2d351379340

You may use docker image dictcp/openvscode-server (or ghcr.io/dictcp/openvscode-server) as drop-in replacement of gitpod/openvscode-server for the time being

dictcp avatar Oct 09 '21 02:10 dictcp

there is an alternative build (with ARM64 support) at https://medium.com/@dictcp/self-hosting-your-vscode-online-ide-from-raspberry-pi-4-to-aws-graviton2-d2d351379340

You may use docker image dictcp/openvscode-server (or ghcr.io/dictcp/openvscode-server) as drop-in replacement of gitpod/openvscode-server for the time being

Thank you, this seems very helpful. would you mind share the Dockerfile if someone wants to build it

MohamedElashri avatar Oct 09 '21 03:10 MohamedElashri

there is an alternative build (with ARM64 support) at https://medium.com/@dictcp/self-hosting-your-vscode-online-ide-from-raspberry-pi-4-to-aws-graviton2-d2d351379340 You may use docker image dictcp/openvscode-server (or ghcr.io/dictcp/openvscode-server) as drop-in replacement of gitpod/openvscode-server for the time being

Thank you, this seems very helpful. would you mind share the Dockerfile if someone wants to build it

You may check at https://github.com/dictcp/docker-openvscode-server/blob/master/Dockerfile

dictcp avatar Oct 09 '21 03:10 dictcp

@dictcp Thanks for the dockercontainer, works like a charm with my rpi4! The only thing that was different to gitpod-io, gitpod seems to use User with id=0 (normally root), whereas your image uses id=1000 (normally the first user), so I had a short problem with my connected workdir (couldn't write to it from inside the container)

Cyber1000 avatar Oct 15 '21 13:10 Cyber1000

@Cyber1000 I think the openvscode-server runs as non-root user as well. So I guess it is intended not to run as root.

$ docker run -it --rm --entrypoint id gitpod/openvscode-server
uid=1000(vscode-server) gid=1000(vscode-server) groups=1000(vscode-server)

dictcp avatar Oct 15 '21 14:10 dictcp

@dictcp thanks for being proactive and setting up your own Docker image with ARM64 support, I'll try to find some time and have this be a part of this repo as well.

filiptronicek avatar Oct 15 '21 15:10 filiptronicek

@dictcp You are perfectly right, my mistake I tested this on different machines. Your script does exactly the same (you are using node:14 for building vscode-server, whereas here workspace-full is used, but that doesn't really matter)

@filiptronicek maybe your workspace-images also should be multiarch (I don't know your complete buildchain though), so far as I've seen workspace-base can be fully build on rpi4 (aka arm64), workspace-full would need some arm-specific-adjustments

Cyber1000 avatar Oct 21 '21 21:10 Cyber1000

I believe this is a requirement for switching to OpenVSCode Server on Home Assistant too:

https://github.com/hassio-addons/addon-vscode/issues/335

Most HA are installed in Raspberry Pis (ARM).

felipecrs avatar Nov 07 '21 18:11 felipecrs

PRs are welcomed here: https://github.com/gitpod-io/vscode-releases

akosyakov avatar Nov 08 '21 08:11 akosyakov

It looks like there are only amd64 builds in this repository release, can you build non-amd64 container images?

eitsupi avatar Nov 11 '21 10:11 eitsupi