Debian Codegraph @

misc/PythonDocs.Dockerfile

raw
1 # image for building documentation for Python bindings, see README.DEVEL.md for more details
2
3 FROM debian:testing
4 LABEL maintainer Vojtech Trefny <[email protected]>
5
6 # add deb-src repo
7 RUN echo "deb-src http://deb.debian.org/debian testing main" >> /etc/apt/sources.list
8
9 RUN apt-get update
10
11 # pgi-docgen dependencies
12 RUN apt-get -y install python3 python3-pip python3-jinja2 python3-sphinx python3-bs4 python3-graphviz libgirepository-1.0-1 libgirepository1.0-dev gir1.2-glib-2.0 gir1.2-glib-2.0-dev
13
14 RUN apt-get -y install git
15
16 # latest pgi from git
17 RUN pip3 install "git+https://github.com/pygobject/pgi.git" --break-system-packages
18
19 WORKDIR /root
20
21 # install latest libblockdev
22 RUN git clone https://github.com/storaged-project/libblockdev
23
24 WORKDIR /root/libblockdev
25
26 # install libblockdev build dependencies
27 RUN apt-get -y install ansible
28 RUN apt-get -y install libnvme-dev
29 RUN ansible-playbook -K -i "localhost," -c local misc/install-test-dependencies.yml
30
31 RUN ./autogen.sh && ./configure --prefix=/usr && make -j6 && DEB_PYTHON_INSTALL_LAYOUT="deb" make install
32
33 WORKDIR /root
34
35 # get latest pgi-docgen and generate documentation for libblockdev
36 RUN git clone https://github.com/pygobject/pgi-docgen
37
38 WORKDIR /root/pgi-docgen
39
40 RUN ./tools/build.sh BlockDev-3.0