Graylog2 / collector-sidecar

Manage log collectors through Graylog
https://www.graylog.org/
Other
268 stars 56 forks source link

Sidecar installation in Ubuntu Docker container on macOS ARM #453

Closed janheise closed 10 months ago

janheise commented 1 year ago

During the test-day for 5.0 I tried to install the sidecar into an Ubuntu Docker container on my M1 ARM Mac.

The sidecar is built for armv7 which is 32bit and might not work on every 64bit ARM platform. The binaries for darwin/arm64 are for macOS, not for Linux. Docker on M1/M2 outputs aarch64 as the platform, which is not arm64 and already created issues with the reporting binaries.

I could install the binaries by manually downloading the .deb and do the following:

dpkg --add-architecture armv7
dpkg -i graylog-sidecar_1.2.0-1_armv7.deb

I think an additional arm64 build is a good addition, which hopefully installs without adding an architecture. If not, the discrepancy between aarch64 and arm64 somehow needs to get resolved.