Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dockerイメージがx86_64以外のアーキテクチャ向けにビルドできない #11847

Closed
sim1222 opened this issue Sep 19, 2023 · 8 comments · Fixed by #11848
Closed
Labels
⚠️bug? This might be a bug

Comments

@sim1222
Copy link
Contributor

sim1222 commented Sep 19, 2023

💡 Summary

0d505f8
このコミットでjemallocが使用されるようになりましたが、ライブラリのパスがx86_64でハードコートされているためaarch64向けなどにビルドができません

🥰 Expected Behavior

x86_64以外のアーキテクチャ向けにもビルドできる

🤬 Actual Behavior

aarch64などではそのパスにライブラリが存在しないためエラーが発生

📝 Steps to Reproduce

  1. docker build -t misskey:latest .

📌 Environment

💻 Frontend

🛰 Backend (for server admin)

  • Installation Method or Hosting Service: Docker
  • Misskey: 2023.9.0-beta.6
  • OS and Architecture: aarch64 ubuntu 22.04
@sim1222 sim1222 added the ⚠️bug? This might be a bug label Sep 19, 2023
@syuilo
Copy link
Member

syuilo commented Sep 19, 2023

ふーむ
x86_64以外のアーキテクチャを使用するケースってどれくらいあるのかしら

@sim1222
Copy link
Contributor Author

sim1222 commented Sep 19, 2023

aarch64に関してはRaspberry Pi、AWS EC2のGravitonインスタンスやOracleCloudのA1、一部ではM1 macでサーバーを実行しているところを観測しています

@syuilo
Copy link
Member

syuilo commented Sep 19, 2023

なるほど
アーキテクチャというのは変更するのは難しい感じかしら

@sim1222
Copy link
Contributor Author

sim1222 commented Sep 19, 2023

基本的にネイティブで実行しないと速度が圧倒的に劣ってしまうので、アーキテクチャの変更は難しい気がします。
主流はx86_64がほとんどですが、最近aarch64(arm)も増えてきているのでできればaarch64は対応してほしい気持ちがあります。
jemalloc自体は他のアーキテクチャにも対応しているのでdocker用に起動時のLD_PRELOADを動的に変える起動スクリプトを用意するといいかも

@syuilo
Copy link
Member

syuilo commented Sep 19, 2023

とりあえずrevertするか

@tamaina
Copy link
Member

tamaina commented Sep 19, 2023

ライブラリのパスがハードコードされていることだけが問題なんじゃん

@tamaina
Copy link
Member

tamaina commented Sep 19, 2023

p1.a9z.devもaarch64で動いているし対応しておきたい

@tamaina
Copy link
Member

tamaina commented Sep 19, 2023

メモ?

ENVでこれができるかわからんけど

https://zenn.dev/ytdrep/articles/d65c26201042eb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⚠️bug? This might be a bug
Projects
None yet
3 participants