Shopify / themekit

Shopify theme development command line tool.
https://shopify.dev/tools/theme-kit
MIT License
1.19k stars 374 forks source link

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

Open emarty-maze opened 3 years ago

emarty-maze commented 3 years ago

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):

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

callamd commented 1 year ago

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

ryaninvents commented 10 months ago

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