Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-48865

CB Server Docker image (x86) fails to run on Docker-for-Mac on Apple Silicon

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 6.6.0
    • Neo.next
    • build
    • Untriaged
    • 1
    • No
    • Build Team 2021 Sprint 21, Build Team 2022 Sprint 2

    Description

      The Golang binaries in ns_server (gozip vbmap goport godu minify gosecrets) are currently built with Go 1.8.5, which hasn't been a supported version for nearly four years. In particular, this is causing an odd situation reported by a user (https://github.com/couchbase/docker/issues/165 ) where our official Docker images won't run in Docker on Mac M1, because the binaries don't meet some Mac requirement even for running in emulation.

      We should upgrade to something much newer, ideally Go 1.15 or so.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            Dave Rigby You're not wrong - I'll re-close it as "Will Not Fix". The initial bug was legit, but the solution is "use the aarch64 image (once it's available)".

            ceej Chris Hillery added a comment - Dave Rigby You're not wrong - I'll re-close it as "Will Not Fix". The initial bug was legit, but the solution is "use the aarch64 image (once it's available)".
            drigby Dave Rigby added a comment -

            The current bug title doesn’t match the rationale for closing - the x86_64 Linux images still have problems. Either this needs the title changing to refer to aarch64/Linux Docker images, or it needs re-opening.

            drigby Dave Rigby added a comment - The current bug title doesn’t match the rationale for closing - the x86_64 Linux images still have problems. Either this needs the title changing to refer to aarch64/Linux Docker images, or it needs re-opening.

            As confirmed by Ian McCloy and others, the newly-created Linux aarch64 Docker image does work OK on M1 Macs. So my initial information here was incorrect, and there is no need to fix anything.

            ceej Chris Hillery added a comment - As confirmed by Ian McCloy and others, the newly-created Linux aarch64 Docker image does work OK on M1 Macs. So my initial information here was incorrect, and there is no need to fix anything.

            Remove NS_SERVER as it is not clear to me if we need to do something on our end. Please re-add and clarify ask if needed.

            meni.hillel Meni Hillel (Inactive) added a comment - Remove NS_SERVER as it is not clear to me if we need to do something on our end. Please re-add and clarify ask if needed.

            Dave Rigby Thank you for the comprehensive explanation. As for your conclusion:

            I propose this issue is resolved as "Not a Bug / Known Error" or similar; referring back to the Docker documentation about this not being a fully supported configuration.

            I agree, if it is true that the Linux aarch64 ns_server binaries (godu, etc) can run in a Docker image on an M1 Mac. Again, my understanding was that this is NOT true; however I'm having trouble finding the source of that information, so it's quite possible I crossed some wires as well. Based on Ming's last comment, it sounds like this may work after all.

            I'm assigning to myself to get to a final answer.

            ceej Chris Hillery added a comment - Dave Rigby Thank you for the comprehensive explanation. As for your conclusion: I propose this issue is resolved as "Not a Bug / Known Error" or similar; referring back to the Docker documentation about this not being a fully supported configuration. I agree, if it is true that the Linux aarch64 ns_server binaries (godu, etc) can run in a Docker image on an M1 Mac. Again, my understanding was that this is NOT true; however I'm having trouble finding the source of that information, so it's quite possible I crossed some wires as well. Based on Ming's last comment, it sounds like this may work after all. I'm assigning to myself to get to a final answer.

            People

              ceej Chris Hillery
              ceej Chris Hillery
              Votes:
              0 Vote for this issue
              Watchers:
              13 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty