Git Product home page Git Product logo

Comments (5)

vvakame avatar vvakame commented on August 28, 2024 1

リクエストありがとうございますー
multi platformなimageのビルドやregistryに対してのpushの知識を全然持ってないんですがやり方とかってご存知ですか?

from docker-review.

RyuSA avatar RyuSA commented on August 28, 2024 1

ビルドに関しては、ARGとしてarchを指定できるようにしておきDockerfileの中でuname -mで初期値を与えてあげる……とかが良さそうに見えます🤔

github actionで自動化される場合は、たとえばこんな感じに記述することで実現できます。

https://github.com/RyuSA/simple-accesspoint/blob/main/.github/workflows/main.yaml#L30

from docker-review.

vvakame avatar vvakame commented on August 28, 2024

NOTE
https://www.docker.com/blog/multi-arch-build-and-images-the-simple-way/

from docker-review.

RyuSA avatar RyuSA commented on August 28, 2024

multi platformなregistryへのpushは、archを特に意識せずにpushすれば大丈夫です!Dockerhub等、マルチプラットフォームな配信ができるようになっているので

たとえば、Golangであれば「linux/386」「linux/amd64」「linux/arm/v5」の3つにarchに対応したイメージをホストしていたります。

https://hub.docker.com/_/golang?tab=tags

コンテナイメージによっては、タグ名で分けたりしているプロダクトもあったりしますが……vvakame/reviewに関して言えば、特に気にせずarch違えど同じタグでpush/shipして良いと思います。

from docker-review.

vvakame avatar vvakame commented on August 28, 2024

おーなるほど ありがとうございます ちょっと勉強してみます〜

from docker-review.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.