Mercurial > hg > easyhg
annotate deploy/linux/docker/Dockerfile_appimage.in @ 724:c59c17665162
Further macOS deployment fixes
author | Chris Cannam <cannam@all-day-breakfast.com> |
---|---|
date | Fri, 14 Dec 2018 17:28:31 +0000 |
parents | 6fb20633da00 |
children | 48e746f45bde |
rev | line source |
---|---|
Chris@701 | 1 FROM ubuntu:14.04 |
Chris@701 | 2 MAINTAINER Chris Cannam <cannam@all-day-breakfast.com> |
Chris@701 | 3 RUN apt-get update && \ |
Chris@701 | 4 apt-get install -y \ |
Chris@701 | 5 software-properties-common \ |
Chris@701 | 6 build-essential \ |
Chris@701 | 7 libbz2-dev \ |
Chris@701 | 8 libxml2-utils \ |
Chris@701 | 9 libgl1-mesa-dev \ |
Chris@701 | 10 git \ |
Chris@701 | 11 mercurial \ |
Chris@701 | 12 curl wget \ |
Chris@701 | 13 mlton \ |
Chris@701 | 14 autoconf automake libtool lintian |
Chris@701 | 15 |
Chris@701 | 16 RUN apt-add-repository -y ppa:beineri/opt-qt-5.10.1-trusty |
Chris@701 | 17 RUN apt-get update && \ |
Chris@701 | 18 apt-get install -y \ |
Chris@701 | 19 qt510base \ |
Chris@701 | 20 qt510svg |
Chris@701 | 21 RUN apt-get clean && rm -rf /var/lib/apt/lists/* |
Chris@701 | 22 |
Chris@701 | 23 RUN locale-gen en_US.UTF-8 |
Chris@701 | 24 ENV LANG en_US.UTF-8 |
Chris@701 | 25 ENV LANGUAGE en_US:en |
Chris@701 | 26 ENV LC_ALL en_US.UTF-8 |
Chris@701 | 27 |
Chris@716 | 28 # Ensure that everything subsequent is re-run when a new revision is |
Chris@716 | 29 # being built (rather than being cached) |
Chris@716 | 30 RUN echo [[REVISION]] |
Chris@716 | 31 |
Chris@701 | 32 WORKDIR /root |
Chris@701 | 33 COPY id_dsa_build .ssh/id_dsa_build |
Chris@701 | 34 COPY known_hosts .ssh/known_hosts |
Chris@701 | 35 RUN chmod 600 .ssh/id_dsa_build .ssh/known_hosts |
Chris@701 | 36 RUN echo '{"accounts": {"bitbucket": "cannam"}}' > .repoint.json |
Chris@701 | 37 RUN ( echo '[ui]' ; echo 'ssh = ssh -i /root/.ssh/id_dsa_build' ) > .hgrc |
Chris@701 | 38 |
Chris@701 | 39 WORKDIR / |
Chris@703 | 40 RUN hg clone -r[[REVISION]] ssh://hg@bitbucket.org/cannam/easyhg |
Chris@701 | 41 |
Chris@701 | 42 WORKDIR /easyhg |
Chris@705 | 43 COPY appimagetool-x86_64.AppImage appimagetool-x86_64.AppImage |
Chris@705 | 44 RUN chmod +x appimagetool-x86_64.AppImage |
Chris@701 | 45 ENV QTDIR /opt/qt510 |
Chris@701 | 46 ENV PATH /opt/qt510/bin:$PATH |
Chris@704 | 47 RUN qmake -r |
Chris@701 | 48 RUN make |
Chris@701 | 49 |
Chris@701 | 50 RUN deploy/linux/deploy-appimage.sh |
Chris@701 | 51 RUN tar cvf output-appimage.tar *.AppImage && cp output-appimage.tar .. |