themekit icon indicating copy to clipboard operation
themekit copied to clipboard

Docker - Cannot find binary to match your architecture [linux aarch64]

Open emarty-maze opened this issue 4 years ago • 2 comments

Describe the bug We want to use Docker to deploy the Flex Shopify Theme using our existing CI environment however when we attempt to install themekit following the instructions found here: https://shopify.dev/themes/tools/theme-kit/getting-started#linux using the command:

curl -s https://shopify.dev/themekit.py | sudo python

we receive the following error:

 => ERROR [7/7] RUN curl -s https://shopify.dev/themekit.py | sudo python3                                                                                                                                 1.1s
------
 > [7/7] RUN curl -s https://shopify.dev/themekit.py | sudo python3:
#11 1.044 Please open an issue at https://github.com/Shopify/themekit/issues
#11 1.044 Cannot find binary to match your architecture [linux aarch64]
------
executor failed running [/bin/sh -c curl -s https://shopify.dev/themekit.py | sudo python3]: exit code: 1

To Reproduce Steps to reproduce the behavior:

  1. Using Docker, try to build the following Docker image using the following contents:
FROM ruby

RUN apt-get update && apt-get install -y \
  sudo

RUN adduser --disabled-password --gecos '' docker
RUN adduser docker sudo
RUN echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers

USER docker

RUN gem install shopify-cli

RUN curl -s https://shopify.dev/themekit.py | sudo python3
  1. Use the following command to build:

docker build -t docker-themekit .

Expected behavior I should end up with a functioning Docker image that I can use to deploy updates to my theme

Environment (please complete the following information):

  • OS: OS 11.5.1 Big Sur
  • Docker desktop 3.5.2
  • Docker images: Alpine Linux & Ubuntu
  • Themekit version: Latest however unable to install and verify the version
  • Editor: Vscode
  • Ignore: N/A

Additional context There was a similar issue opened but never truly resolved as the one who logged it decided to use the node API for deployment in the end, so not a true solution.

https://github.com/Shopify/themekit/issues/695#issuecomment-595068001

emarty-maze avatar Aug 17 '21 10:08 emarty-maze

This also happens on asahi linux with apples new arm architecture.

callamd avatar Aug 21 '23 22:08 callamd

This also happens when you try to use VS Code Devcontainers on an M1 / M2 Mac.

ryaninvents avatar Jan 25 '24 03:01 ryaninvents