Support for armv71 architecture?
Describe the solution you'd like
It'd be awesome if we could install Memos on ARMv71 CPUs as well. When trying to deploy the Docker Container, I get: "no matching manifest for linux/arm/v7 in the manifest list entries"
Thanks!
Type of feature
Other
Additional context
Using Orange Pi Zero
try docker build at repo root directory
Hey, never used docker build before. I should then clone the whole repo to my server, then execute that command? Thanks
Hey, never used docker build before. I should then clone the whole repo to my server, then execute that command? Thanks
yes and git checkout v0.21.0 is strongly recommended to use latest "stable" version rather than unfinished main branch.
Sorry again, I'm clearly missing something. I cloned the repo, then executed the command, but there are some arguments I don't know how to use.
gasto@orangepizero:/repos/memos $ ls CODEOWNERS LICENSE SECURITY.md docs go.sum plugin scripts store web Dockerfile README.md bin go.mod internal proto server test gasto@orangepizero:/repos/memos $ docker build ERROR: "docker buildx build" requires exactly 1 argument. See 'docker buildx build --help'.
Usage: docker buildx build [OPTIONS] PATH | URL | -
Start a build
Okay, I finally used this command on the memos cloned dir:
docker build . -t my-web-app -f Dockerfile
But then got a bunch of errors:
`=> ERROR [frontend 5/6] RUN corepack enable && pnpm i --frozen-lockfile 187.3s => [backend 2/4] WORKDIR /backend-build 3.4s => [backend 3/4] COPY . . 18.2s => CANCELED [backend 4/4] RUN CGO_ENABLED=0 go build -o memos ./bin/memos/main.go 69.0s
[frontend 5/6] RUN corepack enable && pnpm i --frozen-lockfile: 12.58 Corepack is about to download https://registry.npmjs.org/pnpm/-/pnpm-9.0.6.tgz. 32.16 Lockfile is up to date, resolution step is skipped 34.13 Progress: resolved 1, reused 0, downloaded 0, added 0 37.89 Packages: +663 37.89 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 38.13 Progress: resolved 663, reused 0, downloaded 0, added 0 42.14 Progress: resolved 663, reused 0, downloaded 1, added 0 (......) 164.2 Progress: resolved 663, reused 0, downloaded 650, added 641 165.2 Progress: resolved 663, reused 0, downloaded 662, added 652 165.6 Progress: resolved 663, reused 0, downloaded 663, added 663, done 174.1 .../node_modules/protobufjs postinstall$ node scripts/postinstall 176.5 .../node_modules/@bufbuild/buf postinstall$ node ./install.js 176.6 .../[email protected]/node_modules/esbuild postinstall$ node install.js 183.0 .../node_modules/@bufbuild/buf postinstall: /frontend-build/web/node_modules/.pnpm/@[email protected]/node_modules/@bufbuild/buf/install.js:52 183.1 .../node_modules/@bufbuild/buf postinstall: throw new Error(
Unsupported platform: ${platformKey}); 183.1 .../node_modules/@bufbuild/buf postinstall: ^ 183.1 .../node_modules/@bufbuild/buf postinstall: Error: Unsupported platform: linux arm LE 183.1 .../node_modules/@bufbuild/buf postinstall: at pkgAndSubpathForCurrentPlatform (/frontend-build/web/node_modules/.pnpm/@[email protected]/node_modules/@bufbuild/buf/install.js:52:11) 183.1 .../node_modules/@bufbuild/buf postinstall: at checkAndPreparePackage (/frontend-build/web/node_modules/.pnpm/@[email protected]/node_modules/@bufbuild/buf/install.js:94:28) 183.1 .../node_modules/@bufbuild/buf postinstall: at checkAllBinaries (/frontend-build/web/node_modules/.pnpm/@[email protected]/node_modules/@bufbuild/buf/install.js:115:30) 183.1 .../node_modules/@bufbuild/buf postinstall: at Object.(/frontend-build/web/node_modules/.pnpm/@[email protected]/node_modules/@bufbuild/buf/install.js:162:1) 183.1 .../node_modules/@bufbuild/buf postinstall: at Module._compile (node:internal/modules/cjs/loader:1369:14) 183.1 .../node_modules/@bufbuild/buf postinstall: at Module._extensions..js (node:internal/modules/cjs/loader:1427:10) 183.1 .../node_modules/@bufbuild/buf postinstall: at Module.load (node:internal/modules/cjs/loader:1206:32) 183.1 .../node_modules/@bufbuild/buf postinstall: at Module._load (node:internal/modules/cjs/loader:1022:12) 183.1 .../node_modules/@bufbuild/buf postinstall: at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:135:12) 183.1 .../node_modules/@bufbuild/buf postinstall: at node:internal/main/run_main_module:28:49 183.1 .../node_modules/@bufbuild/buf postinstall: Node.js v20.12.2 183.3 .../node_modules/protobufjs postinstall: Done 183.4 .../node_modules/@bufbuild/buf postinstall: Failed 183.5 ELIFECYCLE Command failed with exit code 1.
Dockerfile:9
7 | WORKDIR /frontend-build/web 8 | 9 | >>> RUN corepack enable && pnpm i --frozen-lockfile 10 | 11 | RUN pnpm build
ERROR: failed to solve: process "/bin/sh -c corepack enable && pnpm i --frozen-lockfile" did not complete successfully: exit code: 1`
183.1 .../node_modules/@bufbuild/buf postinstall: throw new Error(Unsupported platform: ${platformKey}); 183.1 .../node_modules/@bufbuild/buf postinstall: ^ 183.1 .../node_modules/@bufbuild/buf postinstall: Error: Unsupported platform: linux arm LE
hmm it seems that bufbuild/buf does not support linux arm LE, but i found there's an armv7 image in their docker hub.
So maybe you can try submitting a new issue in https://github.com/bufbuild/buf to check if they support linux arm LE.
Thank you, I'll give that a try. For the time being I ended up using version 0.15.0, which was the last one with support for armv71: https://hub.docker.com/layers/neosmemo/memos/0.15.0/images/sha256-1c7c215becd4e4b9d7fbe2abd12d56e831cfbbb5e9570ca39f80b698f6b6c835?context=explore
A little bit old, but oh well 🤷🏼♂️
Hi. I just tried to install memos on Raspberry Pi with the same result (no matching manifest for linux/arm/v7). I got in same troubles as you and stopped at : bufbuild/buf still does not support Linux Arm LE. Installing version 0.15.0. works, but it's a quiet old version.
Just asking if you find another way to install a newer version of memos?
Hey that's all we got now unfortunately. No other way of getting the latest release on this architecture....