-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathDockerfile
39 lines (32 loc) · 1004 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
FROM continuumio/miniconda
MAINTAINER Zero Speech <[email protected]>
# Install software dependencies
RUN apt-get -y update
RUN apt-get install -y \
bzip2 \
g++ \
gcc \
git-core \
make \
parallel \
pkg-config \
sox \
vim \
wget
# Copy code from zerospeech2017 repository
WORKDIR /zerospeech2017
COPY . .
# comment a useless import causing a bug in the tests
RUN sed -i 's|import matplotlib.pyplot as plt|# import matplotlib.pyplot as plt|' \
./track1/src/ABXpy/ABXpy/test/test_sampling.py
# Prepare the conda environment
RUN conda create --name zerospeech python=2
# Setup track1
RUN bash -c "source activate zerospeech && \
./track1/setup/setup_track1.sh && \
pytest ./track1/src"
# Setup track2
RUN bash -c "source activate zerospeech && \
./track2/setup/setup_track2.sh"
# Activate the zerospeech environment by default
RUN echo "source activate zerospeech" >> /root/.bashrc