Chris@371
|
1 FROM ubuntu:14.04
|
Chris@371
|
2 MAINTAINER Chris Cannam <cannam@all-day-breakfast.com>
|
Chris@371
|
3 RUN apt-get update && \
|
Chris@371
|
4 apt-get install -y \
|
Chris@371
|
5 software-properties-common \
|
Chris@371
|
6 build-essential \
|
Chris@371
|
7 libbz2-dev \
|
Chris@371
|
8 libfftw3-dev \
|
Chris@371
|
9 libfishsound1-dev \
|
Chris@371
|
10 libid3tag0-dev \
|
Chris@371
|
11 liblo-dev \
|
Chris@371
|
12 liblrdf0-dev \
|
Chris@371
|
13 libmad0-dev \
|
Chris@371
|
14 liboggz2-dev \
|
Chris@371
|
15 libopus-dev \
|
Chris@371
|
16 libopusfile-dev \
|
Chris@371
|
17 libpulse-dev \
|
Chris@371
|
18 libasound2-dev \
|
Chris@371
|
19 libjack-dev \
|
Chris@371
|
20 libsamplerate-dev \
|
Chris@371
|
21 libsndfile-dev \
|
Chris@371
|
22 libsord-dev \
|
Chris@371
|
23 libxml2-utils \
|
Chris@371
|
24 libgl1-mesa-dev \
|
Chris@371
|
25 raptor-utils \
|
Chris@371
|
26 librubberband-dev \
|
Chris@373
|
27 yajl-tools \
|
Chris@371
|
28 git \
|
Chris@371
|
29 mercurial \
|
Chris@371
|
30 curl wget \
|
Chris@371
|
31 mlton \
|
Chris@371
|
32 autoconf automake libtool lintian
|
Chris@371
|
33
|
Chris@371
|
34 RUN apt-add-repository -y ppa:beineri/opt-qt-5.10.1-trusty
|
Chris@371
|
35 RUN apt-get update && \
|
Chris@371
|
36 apt-get install -y \
|
Chris@371
|
37 qt510base \
|
Chris@371
|
38 qt510svg
|
Chris@371
|
39 RUN apt-get clean && rm -rf /var/lib/apt/lists/*
|
Chris@371
|
40
|
Chris@371
|
41 RUN locale-gen en_US.UTF-8
|
Chris@371
|
42 ENV LANG en_US.UTF-8
|
Chris@371
|
43 ENV LANGUAGE en_US:en
|
Chris@371
|
44 ENV LC_ALL en_US.UTF-8
|
Chris@371
|
45
|
Chris@371
|
46 RUN hg clone -r[[REVISION]] https://code.soundsoftware.ac.uk/hg/sonic-annotator
|
Chris@374
|
47 RUN hg clone https://code.soundsoftware.ac.uk/hg/vamp-plugin-sdk
|
Chris@374
|
48 RUN hg clone https://code.soundsoftware.ac.uk/hg/vamp-test-plugin
|
Chris@374
|
49
|
Chris@374
|
50 WORKDIR /vamp-plugin-sdk
|
Chris@374
|
51 RUN ./configure --disable-programs
|
Chris@374
|
52 RUN make plugins
|
Chris@374
|
53
|
Chris@374
|
54 WORKDIR /vamp-test-plugin
|
Chris@374
|
55 RUN make -f Makefile.linux
|
Chris@374
|
56
|
Chris@374
|
57 ENV VAMP_PATH /vamp-plugin-sdk/examples:/vamp-test-plugin
|
Chris@371
|
58
|
Chris@371
|
59 RUN git config --global http.postBuffer 4M
|
Chris@371
|
60
|
Chris@371
|
61 WORKDIR /root
|
Chris@371
|
62
|
Chris@371
|
63 COPY id_rsa_build .ssh/id_rsa_build
|
Chris@371
|
64 COPY known_hosts .ssh/known_hosts
|
Chris@371
|
65 RUN chmod 600 .ssh/id_rsa_build .ssh/known_hosts
|
Chris@371
|
66 RUN echo '{"accounts": {"sourcehut": "~breakfastquay"}}' > .repoint.json
|
Chris@371
|
67 RUN ( echo '[ui]' ; echo 'ssh = ssh -i /root/.ssh/id_rsa_build' ) > .hgrc
|
Chris@371
|
68
|
Chris@371
|
69 WORKDIR /sonic-annotator
|
Chris@371
|
70 ENV QTDIR /opt/qt510
|
Chris@371
|
71 ENV PATH /opt/qt510/bin:$PATH
|
Chris@371
|
72 RUN ./configure
|
Chris@371
|
73 RUN make -j3
|
Chris@371
|
74
|
Chris@371
|
75 RUN deploy/linux/deploy-appimage.sh
|
Chris@378
|
76 RUN tar cvf output-appimage.tar sonic-annotator *.AppImage && cp output-appimage.tar ..
|