[Docker/alpine]: missing dependency for nokogiri
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 48/100
調査の方向性
Dockerfile.alpine、特に issue でリンクされているバージョンから始め、jemoji プラグインを有効にして make image_alpine を実行します。Alpine イメージが SITE=/path/to/site make server でローカルサーバーを起動でき、Nokogiri が共有ライブラリの読み込みに失敗しないことを確認します。
索引モデルが issue の本文から書いたものです。
説明
Before submitting an issue, please be sure to
- Read the contributing instructions
- Update to the latest Gem version (run
bundle update github-pages)
This issue affects
- The site generated by GitHub Pages
- Building sites locally
The GitHub Pages Gem is intended to help users replicate the GitHub Pages build environment locally. If your issue affects both the hosted version and the version previewed locally, you may be better suited reporting seeking support in other forums.
What did you do (e.g., steps to reproduce)
- enable the
jemojiplugin in _config.yml make image_alpineSITE=/path/to/site make server
What did you expect to happen?
a running local server
What happened instead?
build failed because the nokogiri gem couldn't access the shared library ld-linux-aarch64.so.1
Additional information
-
Nokogiri depends on
glibc- Linux aarch64-linux (req: glibc >= 2.29) including musl/Alpine
- Nokogiri docs on supported platforms
- Linux aarch64-linux (req: glibc >= 2.29) including musl/Alpine
-
From the Nokogiri docs on musl having error loading shared library
Musl-based systems like Alpine may not have a glibc-compatible library installed,
leading to problems running the precompiled native gems. -
and also the solution
Install the glibc compatibility layer:
apk add gcompat
NB this does not affect the image built from Dockerfile.alpine@e9d9768.
However I feel it would be nice to include the required library in the image because
- emoji are used quite often while blogging today
- most users of the Docker images are likely to prefer the Alpine one for local development thanks to it's smaller size on disk
- 主要言語
- Ruby
- スター
- 1.9k
- フォーク
- 361
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
github/pages-gem のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
-
難易度 5/5 1週間以上 初心者へのやさしさ 5/100
-
index.htmlオープン
難易度 5/5 1週間以上 初心者へのやさしさ 5/100
github/pages-gem の issue をすべて見る
似ている issue
-
security
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
solana-foundation/pay-kit#341 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
julienXX/terminal-notifier#333 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 82/100
serhii-londar/open-source-mac-os-apps#1419 ·
メンテナーはふだん 5 日以内に返信