source: appstream-generator/test/ci/Dockerfile @ 4841

Last change on this file since 4841 was 4841, checked in by Juanma, 2 years ago

Initial release

File size: 1.5 KB
Line 
1#
2# Docker file for AppStream Generator CI tests
3#
4FROM debian:sid
5
6# prepare
7RUN apt-get update -qq
8
9# install build essentials
10RUN apt-get install -yq git gcc gdc ldc
11
12# install dependencies used by both appstream and appstream-generator
13RUN apt-get install -yq --no-install-recommends \
14    cmake \
15    gettext \
16    itstool \
17    libglib2.0-dev \
18    libxml2-dev \
19    libgirepository1.0-dev \
20    libyaml-dev \
21    libstemmer-dev \
22    xmlto \
23    gobject-introspection
24
25# install dependencies only for appstream-generator
26RUN apt-get install -yq --no-install-recommends \
27    meson \
28    libmustache-d-dev \
29    libcurl4-gnutls-dev \
30    liblmdb-dev \
31    libarchive-dev \
32    libgdk-pixbuf2.0-dev \
33    librsvg2-dev \
34    libfontconfig1-dev \
35    libpango1.0-dev
36
37# JavaScript stuff
38RUN apt-get install -yq --no-install-recommends \
39    npm \
40    nodejs-legacy
41RUN npm install -g bower
42
43# build & install the current Git snapshot of AppStream
44RUN mkdir /build-tmp
45
46RUN cd /build-tmp && \
47    git clone --depth=20 https://github.com/ximion/appstream.git
48RUN mkdir /build-tmp/appstream/build
49RUN cd /build-tmp/appstream/build && \
50    cmake -DMAINTAINER=ON -DAPT_SUPPORT=ON ..
51RUN cd /build-tmp/appstream/build && \
52    make && make install
53
54# build & install GirToD
55RUN cd /build-tmp && \
56    git clone https://github.com/ximion/GIR-D-Generator.git girtod
57RUN mkdir /build-tmp/girtod/build
58RUN cd /build-tmp/girtod/build && \
59    meson ..
60RUN cd /build-tmp/girtod/build && \
61    ninja && ninja install
62
63RUN rm -rf /build-tmp
64
65# finish
66RUN mkdir /build
67WORKDIR /build
Note: See TracBrowser for help on using the repository browser.