Closed koba-lab closed 9 months ago
Github Personal Tokenを生成した
docker loginできた
pushできた
docker build -t ikatodon .
docker tag {image} ghcr.io/koba-lab/ikatodon:v3.5.17
docker push ghcr.io/koba-lab/ikatodon:v3.5.17
https://github.com/users/koba-lab/packages/container/package/ikatodon
ウーン何やらエラーが Apple Silicon のせいかも platformをつけてビルドし直してみる
$ docker-compose logs -f --tail=30
Attaching to live_sidekiq_1_a617438b2673, live_web_1_ce413ffb04bf, live_streaming_1_199969141f67
sidekiq_1_a617438b2673 | standard_init_linux.go:207: exec user process caused "exec format error"
sidekiq_1_a617438b2673 | standard_init_linux.go:207: exec user process caused "exec format error"
sidekiq_1_a617438b2673 | standard_init_linux.go:207: exec user process caused "exec format error"
sidekiq_1_a617438b2673 | standard_init_linux.go:207: exec user process caused "exec format error"
sidekiq_1_a617438b2673 | standard_init_linux.go:207: exec user process caused "exec format error"
sidekiq_1_a617438b2673 | standard_init_linux.go:207: exec user process caused "exec format error"
sidekiq_1_a617438b2673 | standard_init_linux.go:207: exec user process caused "exec format error"
sidekiq_1_a617438b2673 | standard_init_linux.go:207: exec user process caused "exec format error"
sidekiq_1_a617438b2673 | standard_init_linux.go:207: exec user process caused "exec format error"
streaming_1_199969141f67 | standard_init_linux.go:207: exec user process caused "exec format error"
streaming_1_199969141f67 | standard_init_linux.go:207: exec user process caused "exec format error"
streaming_1_199969141f67 | standard_init_linux.go:207: exec user process caused "exec format error"
streaming_1_199969141f67 | standard_init_linux.go:207: exec user process caused "exec format error"
streaming_1_199969141f67 | standard_init_linux.go:207: exec user process caused "exec format error"
streaming_1_199969141f67 | standard_init_linux.go:207: exec user process caused "exec format error"
streaming_1_199969141f67 | standard_init_linux.go:207: exec user process caused "exec format error"
streaming_1_199969141f67 | standard_init_linux.go:207: exec user process caused "exec format error"
streaming_1_199969141f67 | standard_init_linux.go:207: exec user process caused "exec format error"
web_1_ce413ffb04bf | standard_init_linux.go:207: exec user process caused "exec format error"
web_1_ce413ffb04bf | standard_init_linux.go:207: exec user process caused "exec format error"
web_1_ce413ffb04bf | standard_init_linux.go:207: exec user process caused "exec format error"
web_1_ce413ffb04bf | standard_init_linux.go:207: exec user process caused "exec format error"
web_1_ce413ffb04bf | standard_init_linux.go:207: exec user process caused "exec format error"
docker build --platform=linux/amd64 -t ikatodon .
でいけた
$ docker-compose run --rm web bin/tootctl --version
3.5.17
更新もされてる
現在ビルドをリリース時各フロントサーバーで行っているが、めちゃくちゃ時間がかかる上にサーバー台数分行う必要があるので、リリースの時間がとても長くなってしまっている。
何処か別の場所でビルドしたimageをpullするだけでリリースする形にしたかった & Mastodon本家も使っているようなので、Githubコンテナレジストリを使ってみる
https://docs.github.com/ja/packages/working-with-a-github-packages-registry/working-with-the-container-registry
Originally posted by @koba-lab in https://github.com/koba-lab/mastodon/issues/851#issuecomment-1924853403