discord-moodle-bot icon indicating copy to clipboard operation
discord-moodle-bot copied to clipboard

Error with rasperry pi 4

Open FreshImmuc opened this issue 2 years ago • 7 comments

Hey,

i am trying to host v2 on a rasperry pi but always get the error:

$ docker compose up -d
[+] Running 0/2
 ⠦ mongo Pulling
 ⠧ notification-service Pulling
no matching manifest for linux/arm64/v8 in the manifest list entries

I already tried it by using the mongo image: arm64v8/mongo wich is intended for this type of machine but sadly the same error.

Any fixes / things i can try to fix this?

FreshImmuc avatar Apr 23 '23 22:04 FreshImmuc

Hey there,

this is because currently we only provide x86 builds for the notification-service. As a quick workaround, I would suggest you build the image locally on your Pi. @tjarbo do you think we can provide arm builds too using docker buildx or some similar tooling?

p-fruck avatar Apr 23 '23 23:04 p-fruck

Alright, how exactly can i build it locally? The project is already cloned, docker is installed

FreshImmuc avatar Apr 23 '23 23:04 FreshImmuc

Do you also have nodejs installed locally? Inside the repository, you need to build the project using npm ci && npm run build. Then just execute docker build . -t tjarbo/notification-service:next. Afterwards, compose should be able to start the stack just fine

p-fruck avatar Apr 24 '23 05:04 p-fruck

wich npm / node version do i have to use? I get many errors with node-gyp and make

FreshImmuc avatar Apr 24 '23 07:04 FreshImmuc

The project currently uses an outdated version of nodejs. Which version are you running locally? The node-gyp errors are likely due to node-sass depending on Python2 which is not available on your system. To fix that, change the version of node-sass to ^8.0.0 in the packages/frontend/package.json

p-fruck avatar Apr 24 '23 08:04 p-fruck

@tjarbo do you think we can provide arm builds too using docker buildx or some similar tooling?

@p-fruck, haven't we implemented that already somewhere in a different project 🤔? Like Jimmi or so? Would make the implementation much easier if we have something as a reference.

tjarbo avatar Apr 26 '23 17:04 tjarbo

@tjarbo I thought so too but it seems like we only opened a feature request and closed the issue when the repo got archived :smile: https://github.com/p-fruck/jim/issues/35

p-fruck avatar Apr 26 '23 18:04 p-fruck