Skip to content

Produce linux-arm64 binaries for local-companion-app #5320

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

Closed
3 tasks done
axonasif opened this issue Aug 23, 2021 · 8 comments
Closed
3 tasks done

Produce linux-arm64 binaries for local-companion-app #5320

axonasif opened this issue Aug 23, 2021 · 8 comments

Comments

@axonasif
Copy link
Member

axonasif commented Aug 23, 2021

Hi, currently I'm using Ubuntu Focal Fossa ArchLinuxARM in an arm64 device. And I can run vscode natively since they support the arm64 architecture officially as well. It would be great if gitpod would produce the local-companion binaries for arm64 architecture too.
Thanks.

Tasks

@axonasif
Copy link
Member Author

As mentioned in #5712 (comment), I could compile local-app component for arm64 architecture with the following command:

GOOS=linux GOARCH=arm64 go build -ldflags "-s -w"

This would mean to support the RaspberryPi and other ARM based devices if Gitpod would provide binaries for the arm64 architecture officially 😃

I can download VSCODE for arm64 from this official link: https://code.visualstudio.com/sha/download?build=stable&os=linux-arm64

@akosyakov
Copy link
Member

@axonasif PRs are welcomed as well!

@axonasif
Copy link
Member Author

@axonasif PRs are welcomed as well!

Sure thing! Although I'm not sure what's responsible for producing the binaries and pushing them to gitpod.io/static/bin as in the blog post: https://www.gitpod.io/blog/local-app#installation

https://github.com/gitpod-io/website/tree/main/static seems to be it but not exactly 😅

@akosyakov
Copy link
Member

Apps are compiled with: https://github.com/gitpod-io/gitpod/blob/main/components/local-app/BUILD.yaml
Published with:

COPY components-local-app--app/components-local-app--app-linux/local-app /www/static/bin/gitpod-local-companion-linux
COPY components-local-app--app/components-local-app--app-darwin/local-app /www/static/bin/gitpod-local-companion-darwin
COPY components-local-app--app/components-local-app--app-windows/local-app.exe /www/static/bin/gitpod-local-companion-windows.exe

@akosyakov
Copy link
Member

We don't have capacity to handle it right now. Let's try in a week or 2.

@jldec
Copy link
Contributor

jldec commented Sep 29, 2021

+1 to add the MacOS arm64 build as well.
"Open in VS Code" with an M1 Mac currently fails because the default darwin binary is compiled for x86.

[9/29/2021, 11:13:53 PM] open workspace window: vscode://gitpod.gitpod-desktop/workspace/shortscale-rs?...
[9/29/2021, 11:13:53 PM] acquiring lock: gitpod.io
[9/29/2021, 11:13:53 PM] acquired lock: gitpod.io
[9/29/2021, 11:13:53 PM] fetching the local app from https://gitpod.io/static/bin/gitpod-local-companion-darwin
[9/29/2021, 11:13:53 PM] installing the local app to /var/folders/...
[9/29/2021, 11:13:54 PM] installing the local app: {
  "path": "/var/folders/...",
  "etag": "\"r07p8pa0kuo\""
}
[9/29/2021, 11:13:54 PM] starting the local app with the config: {
  "gitpodHost": "https://gitpod.io",
  "configFile": "file:///var/folders/...",
  "apiPort": 63953
}
[9/29/2021, 11:13:54 PM] failed to start the local app: Error: spawn Unknown system error -86
[9/29/2021, 11:13:54 PM] released lock: gitpod.io
[9/29/2021, 11:13:54 PM] failed to open uri: Error: spawn Unknown system error -86

@axonasif
Copy link
Member Author

@akosyakov I was wondering about where is the source code of gitpod.gitpod-desktop hosted at. Any hints or is it not public yet?
Thanks.

@akosyakov
Copy link
Member

@axonasif please update Gitpod extension in local VS Code and try again, it should wokr now

Thanks to @iQQBot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants