After using your build to run:
docker run --platform linux/amd64 skysbiodocker/bcl2fastq2 bcl2fastq --runfolder-dir /Users/xxx/xxx --ignore-missing-bcls
...I receive the error below. Any suggestions?
2023-02-22 20:10:29 [ded900] ERROR: bcl2fastq::common::Exception: 2023-Feb-22 20:10:29: No such file or directory (2): /home/sky/Desktop/trial_build/bcl2fastq/src/cxx/lib/io/Xml.cpp(201):
Throw in function boost::property_tree::ptree
bcl2fastq::io::parseXmlFile(const boost::filesystem::path&) Dynamic exception type:
boost::exception_detail::clone_impl<bcl2fastq::common::IoError>
std::exception::what: Unable to open '/Users/xxx/xxx/RunInfo.xml' file for reading

You can always try conda
Or..... the old school way - run Linux inside a VM
Please, no. There is no upside to using a Linux VM on a Mac, especially given that running custom Linux binaries of any flavor is virtually invisible unless one is working on the shell.
EDIT: For some software, you'll have to take the VM route. Looks like
bcl2fastqis one of those software applications where VM is the only way to go.I tried conda and installed bcl2fastq-nextseq. Now I am having trouble executing it. I tried
It gave me the following error
I contacted the author at GitHub and he told me that there extenal dependancies not available at bioconda. The Illumina documentation here https://support.illumina.com/content/dam/illumina-support/documents/documentation/software_documentation/bcl2fastq/bcl2fastq2_guide_15051736_v2.pdf (page 26) indicates zlib, librt and libpthread as dependancies.
zib was present in anaconda, but there other two were not available. The bcl2fastq.log file had this written to file
So I am not sure how I should proceed from here.
I'm guessing
bcl2fastqwas not built to play well with macOS. You're better off taking the VM route as advised by Santosh Anand.