-
Notifications
You must be signed in to change notification settings - Fork 251
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix bug in defaults for auto_server setting * Rework indices and docker file, and bugfixes * Update changelog * Update dockerfile
- Loading branch information
1 parent
b5d2919
commit e56da4e
Showing
23 changed files
with
362 additions
and
139 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
|
||
docs/* | ||
build/* | ||
.tox/* | ||
.github/* | ||
.pytest_cache/* | ||
tests/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: Publish Docker image | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
push_to_registries: | ||
name: Push Docker image to multiple registries | ||
runs-on: ubuntu-latest | ||
permissions: | ||
packages: write | ||
contents: read | ||
steps: | ||
- name: Check out the repo | ||
uses: actions/checkout@v3 | ||
|
||
- name: Log in to Docker Hub | ||
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9 | ||
with: | ||
username: ${{ secrets.DOCKER_USERNAME }} | ||
password: ${{ secrets.DOCKER_PASSWORD }} | ||
|
||
- name: Log in to the Container registry | ||
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Extract metadata (tags, labels) for Docker | ||
id: meta | ||
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38 | ||
with: | ||
images: | | ||
mmcauliffe/montreal-forced-aligner | ||
ghcr.io/${{ github.repository }} | ||
- name: Build and push Docker images | ||
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc | ||
with: | ||
context: . | ||
push: true | ||
tags: ${{ steps.meta.outputs.tags }} | ||
labels: ${{ steps.meta.outputs.labels }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,17 @@ | ||
FROM continuumio/miniconda3 | ||
RUN conda create -n aligner -c conda-forge montreal-forced-aligner | ||
FROM condaforge/mambaforge:22.11.1-4 as build | ||
|
||
COPY docker_environment.yaml . | ||
RUN mkdir -p /mfa | ||
RUN mamba env create -p /env -f docker_environment.yaml && conda clean -afy | ||
|
||
COPY . /pkg | ||
RUN conda run -p /env python -m pip install --no-deps /pkg | ||
|
||
RUN useradd -ms /bin/bash mfauser | ||
RUN chown -R mfauser /mfa | ||
RUN chown -R mfauser /env | ||
USER mfauser | ||
ENV MFA_ROOT_ENVIRONMENT_VARIABLE=/mfa | ||
RUN conda run -p /env mfa server init | ||
|
||
ENTRYPOINT ["conda", "run", "-p", "/env", "mfa"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
channels: | ||
- conda-forge | ||
- pytorch | ||
- nvidia | ||
dependencies: | ||
- python>=3.8 | ||
- numpy | ||
- librosa | ||
- tqdm | ||
- requests | ||
- pyyaml | ||
- dataclassy | ||
- kaldi=*=*cpu* | ||
- sox | ||
- ffmpeg | ||
- pynini | ||
- openfst | ||
- hdbscan | ||
- baumwelch | ||
- ngram | ||
- praatio=6.0.0 | ||
- biopython=1.79 | ||
- sqlalchemy>=2.0 | ||
- git | ||
- pgvector | ||
- pgvector-python | ||
- postgresql | ||
- psycopg2 | ||
- click | ||
- pytorch | ||
- torchaudio | ||
- setuptools_scm | ||
- numba | ||
- kneed | ||
- matplotlib | ||
- seaborn | ||
- pip | ||
- rich | ||
- rich-click | ||
- pip: | ||
- speechbrain |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/bash --login | ||
# The --login ensures the bash configuration is loaded, | ||
# enabling Conda. | ||
|
||
# Enable strict mode. | ||
set -euo pipefail | ||
# ... Run whatever commands ... | ||
|
||
# Temporarily disable strict mode and activate conda: | ||
set +euo pipefail | ||
conda activate myenv | ||
|
||
# Re-enable strict mode: | ||
set -euo pipefail | ||
|
||
# exec the final command: | ||
exec python run.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.