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@2546
|
54 RUN git config --global http.postBuffer 4M
|
Chris@1910
|
55 RUN git clone https://github.com/sandstorm-io/capnproto
|
Chris@1953
|
56 WORKDIR capnproto
|
Chris@1977
|
57 RUN git checkout v0.6.1
|
Chris@1953
|
58 WORKDIR c++
|
Chris@1971
|
59 RUN autoreconf -i && ./configure && make -j3 && make install
|
Chris@1971
|
60
|
Chris@2144
|
61 WORKDIR /root
|
Chris@2144
|
62
|
Chris@2353
|
63 COPY id_rsa_build .ssh/id_rsa_build
|
Chris@2144
|
64 COPY known_hosts .ssh/known_hosts
|
Chris@2353
|
65 RUN chmod 600 .ssh/id_rsa_build .ssh/known_hosts
|
Chris@2353
|
66 RUN echo '{"accounts": {"sourcehut": "~breakfastquay"}}' > .repoint.json
|
Chris@2353
|
67 RUN ( echo '[ui]' ; echo 'ssh = ssh -i /root/.ssh/id_rsa_build' ) > .hgrc
|
Chris@2144
|
68
|
Chris@2144
|
69 WORKDIR /sonic-visualiser
|
Chris@1910
|
70 ENV QTDIR /opt/qt510
|
Chris@1910
|
71 ENV PATH /opt/qt510/bin:$PATH
|
Chris@2536
|
72 RUN qmake -set SV_PERSISTENT_DEFINES "WITH_FEEDBACK_REQUEST"
|
Chris@1910
|
73 RUN ./configure
|
Chris@1910
|
74 RUN make -j3
|
Chris@1971
|
75
|
Chris@1910
|
76 RUN deploy/linux/deploy-appimage.sh
|
Chris@2116
|
77 RUN tar cvf output-appimage.tar *.AppImage && cp output-appimage.tar ..
|