analytics
analytics copied to clipboard
ARM64 support for docker images
Changes
This PR adds ARM64 builds for plausible docker images. I tested the builds, and everything worked.
Test builds: https://github.com/FZR-forks/analytics/pkgs/container/plausible
the latest tag is the self-hosting version the master version is built to the latest commit
This PR requires switching from yandex/clickhouse-server to a recent clickhouse/clickhouse-server image which supports ARM64
I tested it using the latest version, which has an ARM64 image.
If this PR gets merged, I can create another one to update the hosting repo.
Related: #1286 #903
Tests
- [ ] Automated tests have been added
- [x] This PR does not require tests
Changelog
- [x] Entry has been added to changelog
- [ ] This PR does not make a user-facing change
Documentation
- [ ] Docs have been updated
- [x] This change does not need a documentation update
Dark mode
- [ ] The UI has been tested both in dark and light mode
- [x] This PR does not change the UI
@ukutaht The ARM image here is working on RPI4
@FarisZR 👋
There's been a change in how public images are built: https://github.com/plausible/analytics/pull/2152
tl;dr what had previously been in .github/workflows/docker.yml
moved to .github/workflows/build-public-images.yml
.
I wonder if you'd be up to rebase against master and apply the changes to the new .github/workflows/build-public-images.yml
?
Either way, thank you!
Updated, should i include the ARM build for the Private builds too?
Thank you!
should i include the ARM build for the Private builds too?
No, those are for Plausible.Cloud, and they are amd64 only for now :)
@ukutaht could you please take a look? I think it's ready.
BundleMon
Unchanged files (7)
Status | Path | Size | Limits |
---|---|---|---|
:white_check_mark: | static/css/app.css |
515.19KB | - |
:white_check_mark: | static/js/dashboard.js |
295.63KB | - |
:white_check_mark: | static/js/app.js |
12.13KB | - |
:white_check_mark: | static/js/embed.host.js |
5.58KB | - |
:white_check_mark: | static/js/embed.content.js |
5.06KB | - |
:white_check_mark: | tracker/js/plausible.js |
748B | - |
:white_check_mark: | static/js/applyTheme.js |
314B | - |
No change in files bundle size
Final result: :white_check_mark:
View report in BundleMon website ➡️
Just wanted to make a note: This PR says: "This change does not need a documentation update". However, self-hosting.md
under Requirements
says:
The server must have a CPU with x86_64 architecture and support for SSE 4.2 instructions.
I think that if ARM64 CPUs are now supported, this line and possibly the rest of that section should be updated to reflect this.
I was expecting the master image of plausible/analytics
on DockerHub to be renewed after that PR merging, but it was not, and it seems like it's renewed manually.
I propose to push the new image with both amd64 and arm64.
@paskal The master and stable images are not updated on DockerHub anymore. Only tagged releases are.
so is Raspberry ARM supported or not?
@asyba 👋
Starting from v1.5
plausible/analytics
has arm64 support, so the later Raspberry Pi versions should be supported.