Chris@701: FROM ubuntu:14.04 Chris@701: MAINTAINER Chris Cannam Chris@701: RUN apt-get update && \ Chris@701: apt-get install -y \ Chris@701: software-properties-common \ Chris@701: build-essential \ Chris@701: libbz2-dev \ Chris@701: libxml2-utils \ Chris@701: libgl1-mesa-dev \ Chris@701: git \ Chris@701: mercurial \ Chris@701: curl wget \ Chris@701: mlton \ Chris@701: autoconf automake libtool lintian Chris@701: Chris@701: RUN apt-add-repository -y ppa:beineri/opt-qt-5.10.1-trusty Chris@701: RUN apt-get update && \ Chris@701: apt-get install -y \ Chris@701: qt510base \ Chris@701: qt510svg Chris@701: RUN apt-get clean && rm -rf /var/lib/apt/lists/* Chris@701: Chris@701: RUN locale-gen en_US.UTF-8 Chris@701: ENV LANG en_US.UTF-8 Chris@701: ENV LANGUAGE en_US:en Chris@701: ENV LC_ALL en_US.UTF-8 Chris@701: Chris@716: # Ensure that everything subsequent is re-run when a new revision is Chris@716: # being built (rather than being cached) Chris@716: RUN echo [[REVISION]] Chris@716: Chris@701: WORKDIR /root Chris@701: COPY id_dsa_build .ssh/id_dsa_build Chris@701: COPY known_hosts .ssh/known_hosts Chris@701: RUN chmod 600 .ssh/id_dsa_build .ssh/known_hosts Chris@701: RUN echo '{"accounts": {"bitbucket": "cannam"}}' > .repoint.json Chris@701: RUN ( echo '[ui]' ; echo 'ssh = ssh -i /root/.ssh/id_dsa_build' ) > .hgrc Chris@701: Chris@701: WORKDIR / Chris@703: RUN hg clone -r[[REVISION]] ssh://hg@bitbucket.org/cannam/easyhg Chris@701: Chris@701: WORKDIR /easyhg Chris@705: COPY appimagetool-x86_64.AppImage appimagetool-x86_64.AppImage Chris@705: RUN chmod +x appimagetool-x86_64.AppImage Chris@701: ENV QTDIR /opt/qt510 Chris@701: ENV PATH /opt/qt510/bin:$PATH Chris@704: RUN qmake -r Chris@701: RUN make Chris@701: Chris@727: RUN hg clone https://code.soundsoftware.ac.uk/hg/easyhg-kdiff3 easyhg-kdiff3-src Chris@726: WORKDIR easyhg-kdiff3-src/kdiff3/src-QT4 Chris@725: RUN qmake -r kdiff3.pro Chris@725: RUN make Chris@725: RUN cp kdiff3 ../../../easyhg-kdiff3 Chris@725: Chris@725: WORKDIR /easyhg Chris@701: RUN deploy/linux/deploy-appimage.sh Chris@701: RUN tar cvf output-appimage.tar *.AppImage && cp output-appimage.tar ..