Macbook M1|2|3 support
At the current stage we are not supporting M1 (or M2) out-of-the-box.
Some dependencies are not actually compatible (e.g., hyperscan). Moreover, also docker may have some architectural issues.
Initial steps to do:
- verify hyperscan package ✅
- verify hyperscan wrt #231 ✅
- verify the other dependencies (most of all, tensorflow and related)
- verify docker (is it supported or do we really need workarounds like
export DOCKER_DEFAULT_PLATFORM=linux/amd64?)
After these verifications, we will identify the steps needed to support arm
Update as of end of 2023 on this issue:
- hyperscan package has received recent contributions that fixed several issues. Support to ARM architecture is in their roadmap now (yet, without any ETD).
- Apple released M3. Once hyperscan supports ARM, we will have to test the tool also on M3
A way to install Credential Digger on ARM has been successfully tested. See wiki here.
Missing dependencies to have a full integration instead of this workaround:
- [ ] tensorflow-text (as of today, direct download from an external OS project)
- [ ] tf-models-official
Another option: play with pyproject.toml and provide two different requirements file (i.e., requirements.txt and requirements-arm.txt), but this will burden ourselves with the maintenance of 2 requirements files.