Mercurial > hg > easyhg
annotate deploy/linux/docker/Dockerfile_appimage.in @ 705:b93d662a12df
Load up appimage builder
author | Chris Cannam |
---|---|
date | Wed, 12 Dec 2018 10:36:06 +0000 |
parents | bec2618313d8 |
children | 6fb20633da00 |
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@701 | 28 WORKDIR /root |
Chris@701 | 29 COPY id_dsa_build .ssh/id_dsa_build |
Chris@701 | 30 COPY known_hosts .ssh/known_hosts |
Chris@701 | 31 RUN chmod 600 .ssh/id_dsa_build .ssh/known_hosts |
Chris@701 | 32 RUN echo '{"accounts": {"bitbucket": "cannam"}}' > .repoint.json |
Chris@701 | 33 RUN ( echo '[ui]' ; echo 'ssh = ssh -i /root/.ssh/id_dsa_build' ) > .hgrc |
Chris@701 | 34 |
Chris@701 | 35 WORKDIR / |
Chris@703 | 36 RUN hg clone -r[[REVISION]] ssh://hg@bitbucket.org/cannam/easyhg |
Chris@701 | 37 |
Chris@701 | 38 WORKDIR /easyhg |
Chris@705 | 39 COPY appimagetool-x86_64.AppImage appimagetool-x86_64.AppImage |
Chris@705 | 40 RUN chmod +x appimagetool-x86_64.AppImage |
Chris@701 | 41 ENV QTDIR /opt/qt510 |
Chris@701 | 42 ENV PATH /opt/qt510/bin:$PATH |
Chris@704 | 43 RUN qmake -r |
Chris@701 | 44 RUN make |
Chris@701 | 45 |
Chris@701 | 46 RUN deploy/linux/deploy-appimage.sh |
Chris@701 | 47 RUN tar cvf output-appimage.tar *.AppImage && cp output-appimage.tar .. |