Open Hritik14 opened 1 year ago
Also, last time I checked the dev installation was working with arm (Mac m1), is there a reason to restrict the dockerfile to amd64 ?
Also, last time I checked the dev installation was working with arm (Mac m1), is there a reason to restrict the dockerfile to amd64 ?
Last I checked (a while ago), the Dockerfile was not running properly on arm without forcing the amd64 arch.
Could you provide some context about why forcing this arch is problematic for you?
@tdruez My bad, it's a false positive.
I was getting 501 error on nginx and assumed something is not working on the scancode docker container side following the warning from docker compose
web The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
Although, the real problem was some manage.py
was command was just taking a while.
btw installing rosetta and and enabling it in docker made things a little faster.
I would be interested to know if you can run on macOS ARM natively as the toolkit still does not fully support this
@pombredanne You can run SCIO natively on macOS ARM by installing a dummy (empty) package for those 3 dependencies:
extractcode-7z
typecode-libmagic
extractcode-libarchive
I am reopening so we can document this.
Alternatively, we could publish dummy packages for this arch on pypi for a better installation experience. Not being able to install at all is worst than not having support for a few compression formats.
If it helps someone, I'm currently running scio using rosetta with development installation.
make dev
to make dev PYTHON_EXE=/usr/local/bin/python3
pip install psycopg[binary]
It does mention the amount of memory required as a tooltip (https://scancodeio.readthedocs.io/en/latest/installation.html#run-the-app), but it does not mention the CPU arch ie supporting only amd64 as per dockerfile:
https://github.com/nexB/scancode.io/blob/f84d61207d111187b5c11d54f98cf13362501a0c/Dockerfile#L23C2-L23C2