Chris@706: FROM ubuntu:14.04 Chris@706: MAINTAINER Chris Cannam Chris@706: RUN apt-get update && \ Chris@706: apt-get install -y \ Chris@706: software-properties-common \ Chris@706: build-essential \ Chris@706: libbz2-dev \ Chris@706: libxml2-utils \ Chris@706: libgl1-mesa-dev \ Chris@706: qt5-default libqt5svg5-dev \ Chris@706: git \ Chris@706: mercurial \ Chris@706: curl wget \ Chris@706: mlton \ Chris@706: autoconf automake libtool lintian Chris@706: Chris@706: RUN apt-get clean && rm -rf /var/lib/apt/lists/* Chris@706: Chris@706: RUN locale-gen en_US.UTF-8 Chris@706: ENV LANG en_US.UTF-8 Chris@706: ENV LANGUAGE en_US:en Chris@706: ENV LC_ALL en_US.UTF-8 Chris@706: 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@706: WORKDIR /root Chris@706: COPY id_dsa_build .ssh/id_dsa_build Chris@706: COPY known_hosts .ssh/known_hosts Chris@706: RUN chmod 600 .ssh/id_dsa_build .ssh/known_hosts Chris@706: RUN echo '{"accounts": {"bitbucket": "cannam"}}' > .repoint.json Chris@706: RUN ( echo '[ui]' ; echo 'ssh = ssh -i /root/.ssh/id_dsa_build' ) > .hgrc Chris@706: Chris@706: WORKDIR / Chris@706: RUN hg clone -r[[REVISION]] ssh://hg@bitbucket.org/cannam/easyhg Chris@706: Chris@706: WORKDIR /easyhg Chris@706: RUN qmake -r Chris@706: RUN make Chris@706: Chris@725: RUN hg clone https://code.soundsoftware.ac.uk/hg/easyhg-kdiff3 Chris@725: WORKDIR easyhg-kdiff3/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@706: RUN deploy/linux/deploy-deb.sh [[RELEASE]] amd64 Chris@706: RUN tar cvf output-deb.tar *.deb && cp output-deb.tar ..