Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Apple M1 #1030

Open
sobrinho opened this issue Sep 8, 2021 · 4 comments
Open

Support Apple M1 #1030

sobrinho opened this issue Sep 8, 2021 · 4 comments
Assignees

Comments

@sobrinho
Copy link

sobrinho commented Sep 8, 2021

$ docker run \                                                                                       host Gabriels-MacBook-Air  pwd jobs  vcs intg-1505  ruby 2.7.2  node 14.15.4
  --interactive --tty --rm \
  --env CODECLIMATE_CODE="$PWD" \
  --volume "$PWD":/code \
  --volume /var/run/docker.sock:/var/run/docker.sock \
  --volume /tmp/cc:/tmp/cc \
  codeclimate/codeclimate help
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
Usage: codeclimate COMMAND ...

Available commands:
    analyze [-f format] [-e engine[:channel]] [path]    Run analysis with the given arguments
    console                                             Open a ruby console for the CLI. Useful for developing against the CLI.
    engines:install                                     Pull the latest images for enabled engines in your configuration
    engines:list                                        List all available engines
    help [command]                                      Display help information.
    prepare [--allow-internal-ips]                      Run the commands in your prepare step.
    validate-config                                     Validate your .codeclimate.yml or .codeclimate.json.
    version                                             Display the CLI version.
@MikeBenza
Copy link

It looks like it runs, just with a warning:

docker run \                                                                                                                                        9s  13:13:39
  --interactive --tty --rm \
  --env CODECLIMATE_CODE="$PWD" \
  --volume "$PWD":/code \
  --volume /var/run/docker.sock:/var/run/docker.sock \
  --volume /tmp/cc:/tmp/cc \
  codeclimate/codeclimate analyze
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
Starting analysis
Running structure: Done!
Running duplication: Done!

Analysis complete! Found 0 issues.

@gondalez
Copy link

For the project I work on I can confirm using codeclimate/codeclimate is a lot slower on an m1 machine under emulation.

I have left it running for > 20 minutes without it finishing and I can see qemu working away:
image

So I can't really use it at the moment to run quick local checks.
Previously it would finish in tens of seconds.

A multi-arch docker image with multi-arch support might make this usable on m1 🙏❤️🍎

@johngallagher
Copy link

I too have this problem. I'm waiting a long time for Code Climate to complete on the hosted version and want to run some quick checks locally to save myself development time, but running the command locally takes way too long.

Is there any way of building from source to get a performance improvement?

@aflansburg
Copy link

+1 for incredibly long runtime on M1 - also 👀 for some way to build from source for quicker runtime

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants