meilisearch-swift icon indicating copy to clipboard operation
meilisearch-swift copied to clipboard

Unable to build the Dockerfile in an Apple M1

Open ppamorim opened this issue 4 years ago • 1 comments
trafficstars

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

ppamorim avatar Jun 30 '21 00:06 ppamorim

Is this still the case @ppamorim ?

bidoubiwa avatar Apr 07 '22 17:04 bidoubiwa

I don't think this is a bug anymore after https://github.com/meilisearch/meilisearch-swift/pull/292 and other docker improvements #304

Feel free to reopen if you think this is a mistake! :)

brunoocasali avatar Sep 28 '22 08:09 brunoocasali