-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
116 additions
and
13 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
FROM ubuntu:bionic | ||
ARG NAME=stable-venv-ubuntu1804 | ||
ARG VERSION=stable | ||
ARG BRANCH=master | ||
EXPOSE 80 | ||
USER root | ||
MAINTAINER Maarten van Gompel <proycon@anaproy.nl> | ||
LABEL Description="LaMachine Local Test" | ||
RUN apt-get update | ||
RUN apt-get install -m -y python sudo apt-utils wget locales | ||
RUN sed -i 's/^# *\(en_US.UTF-8\)/\1/' /etc/locale.gen | ||
RUN locale-gen | ||
RUN useradd -ms /bin/bash lamachine | ||
RUN echo "lamachine:lamachine" | chpasswd | ||
RUN echo "lamachine ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers | ||
USER lamachine | ||
WORKDIR /home/lamachine | ||
RUN wget https://raw.githubusercontent.com/proycon/LaMachine/$BRANCH/bootstrap.sh | ||
RUN chmod a+x bootstrap.sh | ||
RUN /bin/bash bootstrap.sh --flavour local --branch $BRANCH --version $VERSION --env virtualenv --noninteractive --private --verbose --name $NAME --hostname lamachine-$NAME | ||
CMD /bin/bash -l /home/lamachine/lamachine-$NAME-activate |
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
--- | ||
dependencies: | ||
- { role: python-core } | ||
- { role: kaldi } |
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,9 +1,47 @@ | ||
--- | ||
#this script does most of what https://github.com/UFAL-DSG/alex-asr/blob/master/prepare_env.sh does, but with the latest kaldi that's already in LaMachine | ||
|
||
- name: Obtaining PyFST | ||
include_role: | ||
name: lamachine-git | ||
vars: | ||
package: | ||
user: "UFAL-DSG" | ||
repo: "pyfst" | ||
|
||
- name: Obtaining Alex-ASR #we need to do this in a seperate step as we are preparing the environment before actually installing | ||
include_role: | ||
name: lamachine-git | ||
vars: | ||
package: | ||
user: "UFAL-DSG" | ||
repo: "alex-asr" | ||
|
||
- name: Creating lib directory | ||
file: | ||
path: "{{ source_path }}/alex-asr/libs" | ||
state: directory | ||
owner: "{{unix_user}}" | ||
group: "{{unix_group}}" | ||
mode: u+rwx,g+rwsx,a+rx | ||
|
||
- name: Linking library path for kaldi | ||
file: | ||
src: "{{lm_prefix}}/opt/kaldi" | ||
dest: "{{lm_prefix}}/src/alex-asr/libs/kaldi" | ||
state: link | ||
|
||
- name: Linking library path for pyfst | ||
file: | ||
src: "{{source_path}}/pyfst" | ||
dest: "{{lm_prefix}}/src/alex-asr/libs/pyfst" | ||
state: link | ||
|
||
- name: Installing Alex-ASR | ||
include_role: | ||
name: lamachine-python-install | ||
vars: | ||
package: | ||
github_user: "UFAL-DSG" | ||
github_repo: "alex-asr" | ||
#pip: "alex_asr" | ||
|
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
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