Skip to content

Building the tools image fails on Mac silicon #373

@chrsoo

Description

@chrsoo

When following the instructions on CONTRIBUTING.md:

# change directory into the rust-fitsio root directory
docker build -t <tag> .
docker run --rm -it -v $(pwd):/project <tag> bash

... the docker build fails with the following message on a Mac with Apple silicon (M1):

➜  rust-fitsio git:(main) ✗ docker build -t fitsio .
[+] Building 165.4s (7/9)
...
 => ERROR [3/5] RUN rustup update &&     rustup install stable &&     rustup install nightly &&     rustup component add clippy --toolchain stable-x8  163.6s
------
 > [3/5] RUN rustup update &&     rustup install stable &&     rustup install nightly &&     rustup component add clippy --toolchain stable-x86_64-unknown-linux-gnu:
...
#6 163.6 error: toolchain 'stable-x86_64-unknown-linux-gnu' is not installed

It would appear that the Dockerfile (or build command) assumes an Intel-based Mac.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions