[BUG] Dockerfile Does Not Work
Debugging checklist
[ x] Have you read the troubleshooting page (https://montreal-forced-aligner.readthedocs.io/en/latest/user_guide/troubleshooting.html) and searched the documentation to ensure that your issue is not addressed there?
[ x] Have you updated to latest MFA version (check https://montreal-forced-aligner.readthedocs.io/en/latest/changelog/changelog_3.0.html)? What is the output of mfa version?
[n/a ] Have you tried rerunning the command with the --clean flag?
Describe the issue
Tried to build from your docker file and it failed. I cloned the repo, cd'd in, and ran docker build -t mfa .
"""
$ 03:25:36 ❯❯ docker build -t mfa .
[+] Building 15.9s (12/15) docker:desktop-linux
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 630B 0.0s
=> WARN: FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 1) 0.0s
=> [internal] load metadata for docker.io/condaforge/mambaforge:22.11.1-4 1.2s
=> [auth] condaforge/mambaforge:pull token for registry-1.docker.io 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 134B 0.0s
=> [ 1/10] FROM docker.io/condaforge/mambaforge:22.11.1-4@sha256:eee290088569c137c9b6ce19e8a1229a9506afb03a5009df4c3295839a9cb158 0.0s
=> [internal] load build context 0.6s
=> => transferring context: 92.97MB 0.6s
=> CACHED [ 2/10] COPY ci/docker_environment.yaml . 0.0s
=> CACHED [ 3/10] RUN mkdir -p /mfa 0.0s
=> CACHED [ 4/10] RUN useradd -ms /bin/bash mfauser 0.0s
=> CACHED [ 5/10] RUN chown -R mfauser /mfa 0.0s
=> [ 6/10] COPY . /pkg 0.1s
=> ERROR [ 7/10] RUN mamba env create -p /env -f docker_environment.yaml && conda clean -afy && chown -R mfauser /env 14.0s
[ 7/10] RUN mamba env create -p /env -f docker_environment.yaml && conda clean -afy && chown -R mfauser /env: 13.87 13.87 13.87 Looking for: ["python[version='>=3.11']", 'numpy', 'librosa', 'tqdm', 'requests', 'pyyaml', 'dataclassy', 'kaldi=[build=cpu]', 'pynini', 'openfst=1.8.3', 'scikit-learn', 'hdbscan', 'baumwelch', 'ngram', 'praatio=6.0.0', 'biopython', "sqlalchemy[version='>=2.0']", 'git', 'pgvector', 'pgvector-python', 'postgresql', 'psycopg2', 'click', 'pytorch', 'torchaudio', 'setuptools_scm', 'kneed', 'matplotlib', 'seaborn', 'sqlite', 'rich', 'rich-click', 'kalpy', 'spacy', 'sudachipy', 'sudachidict-core', 'spacy-pkuseg', 'pip'] 13.87 13.87 13.87 Could not solve for environment specs 13.87 Encountered problems while solving: 13.87 - nothing provides requested pynini 13.87 - nothing provides requested baumwelch 13.87 - nothing provides requested ngram 13.87 - nothing provides requested kalpy 13.87 13.87 The environment can't be solved, aborting the operation 13.87
2 warnings found (use docker --debug to expand):
- FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 1)
- LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format (line 17) Dockerfile:8
7 | COPY . /pkg
8 | >>> RUN mamba env create -p /env -f docker_environment.yaml && conda clean -afy &&
9 | >>> chown -R mfauser /env
10 | RUN conda run -p /env python -m pip install speechbrain && \
ERROR: failed to solve: process "/bin/sh -c mamba env create -p /env -f docker_environment.yaml && conda clean -afy && chown -R mfauser /env" did not complete successfully: exit code: 1
"""
For Reproducing your issue Please fill out the following:
- Corpus structure
- What language is the corpus in? n/a
- How many files/speakers? n/a
- Are you using lab files or TextGrid files for input? n/a
- Dictionary
- Are you using a dictionary from MFA? If so, which one? n/a
- If it's a custom dictionary, what is the phoneset? n/a
- Acoustic model
- If you're using an acoustic model, is it one download through MFA? If so, which one? n/a
- If it's a model you've trained, what data was it trained on? n/a
Log file
Please attach the log file for the run that encountered an error (by default these will be stored in ~/Documents/MFA).
see above
Desktop (please complete the following information):
- OS: MacOS
- Version Sonoma 14.1
- Any other details about the setup (Cloud, Docker, etc)
Additional context Add any other context about the problem here.
In case it’s relevant, these fixes may help: https://github.com/MontrealCorpusTools/Montreal-Forced-Aligner/pull/906