Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 2bac439

Browse files
committed
alex-asr can be compiled/run inside Docker for testing purposes.
1 parent bc4bc02 commit 2bac439

File tree

3 files changed

+23
-0
lines changed

3 files changed

+23
-0
lines changed

.dockerignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
test
2+
env

Dockerfile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
FROM ubuntu:14.04.2
2+
MAINTAINER Ondrej Klejch
3+
4+
WORKDIR /opt/app/alex-asr
5+
RUN apt-get update && \
6+
apt-get install -y build-essential libatlas-base-dev python python-dev python-pip git wget gfortran g++ unzip zlib1g-dev automake autoconf libtool subversion
7+
8+
ADD requirements.txt prepare_env.sh /opt/app/alex-asr/
9+
RUN pip install -r requirements.txt && bash prepare_env.sh
10+
11+
ADD . /opt/app/alex-asr/
12+
RUN make -j 4 && python setup.py install

Makefile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,4 +73,13 @@ clean:
7373
test:
7474
(PYTHONPATH=$(shell echo build/lib.*) python test/test.py )
7575

76+
docker_build:
77+
docker build -t choko/alex-asr .
7678

79+
docker_test:
80+
docker run -i -t --rm \
81+
-v `pwd`/test:/opt/app/alex-asr/test \
82+
-v `pwd`/Makefile:/opt/app/alex-asr/Makefile \
83+
-v `pwd`/src:/opt/app/alex-asr/src \
84+
choko/alex-asr \
85+
bash -c "make -j 4 && python setup.py install && cd test && python test.py"

0 commit comments

Comments
 (0)