Skip to content

Unable to build the Dockerfile in an Apple M1 #151

@ppamorim

Description

@ppamorim

Description
It's not possible to compile the Dockerfile in the Apple M1.

Expected behavior
Compile the Dockerfile in the Apple M1.

Current behavior
Currently, I suspect that the image maxdesiatov/swift-alpine is x86 only. The crash happens at apk add -q --no-cache libgcc tini curl.

Screenshots or Logs

ppamorim@Pedros-Mac-mini meilisearch-swift % docker build -t mei .
[+] Building 2.9s (6/7)                                                                                                   
 => [internal] load build definition from Dockerfile                                                                 0.0s
 => => transferring dockerfile: 325B                                                                                 0.0s
 => [internal] load .dockerignore                                                                                    0.0s
 => => transferring context: 34B                                                                                     0.0s
 => [internal] load metadata for docker.io/maxdesiatov/swift-alpine:latest                                           0.6s
 => CACHED [1/3] FROM docker.io/maxdesiatov/swift-alpine@sha256:33e59e08d2a6dbeba2b600f0ef4380f13ca802f35dad7f6faa8  0.0s
 => [internal] load build context                                                                                    0.0s
 => => transferring context: 8.70kB                                                                                  0.0s
 => ERROR [2/3] RUN     apk add -q --no-cache libgcc tini curl &&         curl -L https://install.meilisearch.com |  2.2s
------
 > [2/3] RUN     apk add -q --no-cache libgcc tini curl &&         curl -L https://install.meilisearch.com | sh &&         chmod +x meilisearch:
#5 2.164 ERROR: unsatisfiable constraints:
#5 2.164   ninja (virtual):
#5 2.200     provided by: samurai
#5 2.200     required by: world[ninja]

Environment (please complete the following information):

  • OS: MacOS
  • MeiliSearch version: Not applicable
  • meilisearch-swift version: Not applicable

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions