Chris@1910
|
1 FROM ubuntu:14.04
|
Chris@1910
|
2 MAINTAINER Chris Cannam <cannam@all-day-breakfast.com>
|
Chris@1910
|
3 RUN apt-get update && \
|
Chris@1910
|
4 apt-get install -y \
|
Chris@1910
|
5 software-properties-common \
|
Chris@1910
|
6 build-essential \
|
Chris@1910
|
7 libbz2-dev \
|
Chris@1910
|
8 libfftw3-dev \
|
Chris@1910
|
9 libfishsound1-dev \
|
Chris@1910
|
10 libid3tag0-dev \
|
Chris@1910
|
11 liblo-dev \
|
Chris@1910
|
12 liblrdf0-dev \
|
Chris@1910
|
13 libmad0-dev \
|
Chris@1910
|
14 liboggz2-dev \
|
Chris@2266
|
15 libopus-dev \
|
Chris@2266
|
16 libopusfile-dev \
|
Chris@1910
|
17 libpulse-dev \
|
Chris@1922
|
18 libasound2-dev \
|
Chris@1931
|
19 libjack-dev \
|
Chris@1910
|
20 libsamplerate-dev \
|
Chris@1910
|
21 libsndfile-dev \
|
Chris@1910
|
22 libsord-dev \
|
Chris@1910
|
23 libxml2-utils \
|
Chris@1910
|
24 libgl1-mesa-dev \
|
Chris@1910
|
25 raptor-utils \
|
Chris@1910
|
26 librubberband-dev \
|
Chris@1910
|
27 git \
|
Chris@1910
|
28 mercurial \
|
Chris@1910
|
29 curl wget \
|
Chris@1910
|
30 mlton \
|
Chris@1910
|
31 autoconf automake libtool lintian
|
Chris@1921
|
32
|
Chris@1931
|
33 # NB we do not install portaudio. We don't want to end up including it
|
Chris@1931
|
34 # in the bundle, because it comes with a dependency on the JACK
|
Chris@1931
|
35 # library which we don't want to bundle and can't assume people will
|
Chris@1931
|
36 # have. However, we do install JACK because the Dynamic JACK mechanism
|
Chris@1931
|
37 # should ensure we can detect, configure, and use that without
|
Chris@1931
|
38 # actually linking against it. We also have Pulse as the default I/O.
|
Chris@1921
|
39
|
Chris@1910
|
40 RUN apt-add-repository -y ppa:beineri/opt-qt-5.10.1-trusty
|
Chris@1910
|
41 RUN apt-get update && \
|
Chris@1910
|
42 apt-get install -y \
|
Chris@1910
|
43 qt510base \
|
Chris@1910
|
44 qt510svg
|
Chris@1910
|
45 RUN apt-get clean && rm -rf /var/lib/apt/lists/*
|
Chris@1971
|
46
|
Chris@1910
|
47 RUN locale-gen en_US.UTF-8
|
Chris@1910
|
48 ENV LANG en_US.UTF-8
|
Chris@1910
|
49 ENV LANGUAGE en_US:en
|
Chris@1910
|
50 ENV LC_ALL en_US.UTF-8
|
Chris@1971
|
51
|
Chris@1924
|
52 RUN hg clone -r[[REVISION]] https://code.soundsoftware.ac.uk/hg/sonic-visualiser
|
Chris@1971
|
53
|
Chris@1910
|
54 RUN git clone https://github.com/sandstorm-io/capnproto
|
Chris@1953
|
55 WORKDIR capnproto
|
Chris@1977
|
56 RUN git checkout v0.6.1
|
Chris@1953
|
57 WORKDIR c++
|
Chris@1971
|
58 RUN autoreconf -i && ./configure && make -j3 && make install
|
Chris@1971
|
59
|
Chris@2144
|
60 WORKDIR /root
|
Chris@2144
|
61
|
Chris@2144
|
62 COPY id_dsa_build .ssh/id_dsa_build
|
Chris@2144
|
63 COPY known_hosts .ssh/known_hosts
|
Chris@2144
|
64 RUN chmod 600 .ssh/id_dsa_build .ssh/known_hosts
|
Chris@2144
|
65 RUN echo '{"accounts": {"bitbucket": "cannam"}}' > .repoint.json
|
Chris@2144
|
66 RUN ( echo '[ui]' ; echo 'ssh = ssh -i /root/.ssh/id_dsa_build' ) > .hgrc
|
Chris@2144
|
67
|
Chris@2144
|
68 WORKDIR /sonic-visualiser
|
Chris@1910
|
69 ENV QTDIR /opt/qt510
|
Chris@1910
|
70 ENV PATH /opt/qt510/bin:$PATH
|
Chris@1910
|
71 RUN ./configure
|
Chris@1910
|
72 RUN make -j3
|
Chris@1971
|
73
|
Chris@1910
|
74 RUN deploy/linux/deploy-appimage.sh
|
Chris@2116
|
75 RUN tar cvf output-appimage.tar *.AppImage && cp output-appimage.tar ..
|