forked from inasafe/inasafe-doc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
40 lines (36 loc) · 954 Bytes
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# command line on which this file is based:
# docker run -t -i -v /home/data/staging.docs.inasafe.org:/inasafe-doc/ -w=/inasafe-doc --rm=true qgis/sphinx_html ./scripts/post_translate.sh
# sphinx_pdf image can build both html and pdf
# if you only need html, use qgis/sphinx_html
# which is MUCH MUCH smaller!
# build html, will actually stop after 1 language because script will exit 1
#
# docker-compose run --rm html
# to build all
# OR
# docker-compose run --rm html en
# to build english only
#
html:
image: qgis/sphinx_html
volumes:
- .:/inasafe-doc/
working_dir: /inasafe-doc
entrypoint: ./scripts/post_translate.sh
restart: unless-stopped
tty: true
# build pdf AND html
#
# docker-compose run --rm pdf
# to build all
# OR
# docker-compose run --rm pdf en
# to build english only
#
pdf:
image: qgis/sphinx_pdf
volumes:
- .:/inasafe-doc/
working_dir: /inasafe-doc
entrypoint: ./scripts/post_translate.sh
tty: true