Skip to content

Linux_arm64 is not supported by choosenim - docker build #7258

@romanzac

Description

@romanzac

Building Docker image on Mac with ARM ends with:

 => [stage-1 3/8] RUN mkdir -p /usr/status-user && chmod -R 777 /usr/status-user                                                          0.1s
 => [stage-1 4/8] RUN mkdir -p /static/configs                                                                                            0.1s
 => ERROR [builder  3/12] RUN curl https://nim-lang.org/choosenim/init.sh -sSf | sh -s -- -y     && /root/.nimble/bin/choosenim 2.2.4     1.4s
------
 > [builder  3/12] RUN curl https://nim-lang.org/choosenim/init.sh -sSf | sh -s -- -y     && /root/.nimble/bin/choosenim 2.2.4:
1.396 choosenim-init: Error: Sorry, your platform (linux_arm64) is not supported by choosenim.
1.396 choosenim-init: Error: You will need to install Nim using an alternative method.
1.396 choosenim-init: Error: See the following link for more info: https://nim-lang.org/install.html
------
Dockerfile:16
--------------------
  15 |     ENV CHOOSENIM_NO_ANALYTICS=1
  16 | >>> RUN curl https://nim-lang.org/choosenim/init.sh -sSf | sh -s -- -y \
  17 | >>>     && /root/.nimble/bin/choosenim ${NIM_VERSION}
  18 |

Impact

High occurrence, low impact.

To reproduce

  1. Checkout https://github.com/status-im/status-go/tree/develop
  2. Setup prerequisites for functional tests (Docker, Anvil, etc.)
  3. docker build --tag "statusgo-$(git rev-parse --short HEAD)" .

Expected behavior

Possibly use Docker builder with Nim compiler built from sources and have this cached in subsequent builds. Or make Choosenim community to add support for linux_arm64. Temporary workaround - undo #7185

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions