analytics icon indicating copy to clipboard operation
analytics copied to clipboard

ARM64 support for docker images

Open FarisZR opened this issue 2 years ago • 5 comments

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

FarisZR avatar Aug 13 '22 18:08 FarisZR

@ukutaht The ARM image here is working on RPI4

DennisLoska avatar Sep 14 '22 13:09 DennisLoska

@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!

ruslandoga avatar Sep 21 '22 12:09 ruslandoga

Updated, should i include the ARM build for the Private builds too?

FarisZR avatar Sep 21 '22 14:09 FarisZR

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 :)

ruslandoga avatar Sep 21 '22 14:09 ruslandoga

@ukutaht could you please take a look? I think it's ready.

ruslandoga avatar Sep 21 '22 14:09 ruslandoga

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 ➡️


Current branch size history | Target branch size history

bundlemon[bot] avatar Sep 26 '22 13:09 bundlemon[bot]

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.

XJDHDR avatar Sep 28 '22 19:09 XJDHDR

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 avatar Sep 28 '22 21:09 paskal

@paskal The master and stable images are not updated on DockerHub anymore. Only tagged releases are.

ukutaht avatar Sep 29 '22 07:09 ukutaht

so is Raspberry ARM supported or not?

asyba avatar Dec 23 '23 21:12 asyba

@asyba 👋

Starting from v1.5 plausible/analytics has arm64 support, so the later Raspberry Pi versions should be supported.

ruslandoga avatar Dec 24 '23 01:12 ruslandoga