-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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 & deploy Wechaty docker image with arm64 multi platform support #2248
Comments
I tried using https://github.com/wechaty/wechaty/blob/main/Dockerfile to build image on raspberrypi 64bit but got error with installing 'google-chrome-unstable'. In case it helps, im happy to test |
@Yc-Chen Thanks for trying that, I'd like to accept a PR for adding this support! CC @sososoyoung to see if you can get any help or useful information. |
@Yc-Chen we can use See: |
With installing chromium (not chromium-browser, https://stackoverflow.com/a/65586840) I got to the testing step, but then the tests failed. Is it something related to the operating system? The full log is:
|
Good job, according to the log message I feel you are very close to succeeding! The unit test fails seems related to TIMEOUT, I guess is because the raspberry pi is slow (the same as the emulator), you can try to increase the Line 62 in f47267d
- "test:unit": "cross-env NODE_OPTIONS=\"--no-warnings --loader=ts-node/esm\" TAP_TIMEOUT=60 tap \"src/**/*.spec.ts\" \"tests/**/*.spec.ts\"",
+ "test:unit": "cross-env NODE_OPTIONS=\"--no-warnings --loader=ts-node/esm\" TAP_TIMEOUT=180 tap \"src/**/*.spec.ts\" \"tests/**/*.spec.ts\"", |
Keep trying! I got a new error now:
|
The |
I see, is it an idea to commit |
@Yc-Chen thanks for the suggestion. However, we do not want to commit to the For our users, they are free to use |
From wechaty/puppet-wechat#102 we can see the wechaty-puppet-wechat and wechaty-puppet-whatsapp can support Raspberry Pi.
From the below GitHub action script, we have already know how to build and publish multiple platform docker images:
https://github.com/huan/docker-simple-mail-forwarder/blob/c3b5b30be708b473ab850fdc36c3734be2d4a614/.github/workflows/docker.yml#L68-L73
Wechaty should support it in the future.
Related links
docker buildx
to add arm platform to our docker image huan/docker-simple-mail-forwarder#76Update Nov 27, 2021
The
buildx
seems to work perfectly, and the arm arch will take almost 10X times than the x86_64 when we are building:The text was updated successfully, but these errors were encountered: