Uploaded image for project: 'Container Tools'
  1. Container Tools
  2. RUN-2496

[containers/buildah] --platform parameter spills out of its FROM clause

XMLWordPrintable

    • 5
    • False
    • Hide

      None

      Show
      None
    • False
    • rhel-container-tools
    • RUN 266, RUN 267, RUN 268, RUN 269

      [2828963857] Upstream Reporter: Sergey Yedrikov
      Upstream issue status: Closed
      Upstream description:

      I have an image built on linux/amd64 that I need to use as a base, on amd64 and arm64. I am treating that image as data-only and simply need to copy some files from it to the resulting image. I was hoping the following would work:

      ARG LIGHTSPEED_RAG_CONTENT_IMAGE=quay.io/openshift-lightspeed/lightspeed-rag-content@sha256:3e96332648a6f8ff1879c7ae11c818ea7f1c8d5b8a99c4bff406c98c8a7d4541
      FROM --platform=linux/amd64 ${LIGHTSPEED_RAG_CONTENT_IMAGE} as lightspeed-rag-content
      FROM registry.redhat.io/ubi9/ubi-minimal:latest
      COPY --from=lightspeed-rag-content /rag/vector_db/ocp_product_docs ./vector_db/ocp_product_docs
      RUN uname -m

      , but it doesn't - on arm64, the

      FROM registry.redhat.io/ubi9/ubi-minimal:latest

      line picks up the amd64 flavor of the UBI9 base image.


      Upstream URL: https://github.com/containers/buildah/issues/5968

              Unassigned Unassigned
              upstream-sync Upstream Sync
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: