aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile-debian-10-sqlite
diff options
context:
space:
mode:
authorBen Sturmfels <ben@sturm.com.au>2021-03-29 17:01:46 +1100
committerBen Sturmfels <ben@sturm.com.au>2021-03-29 17:01:46 +1100
commit6e6baa15cccdbc709ff39872613a7cfe08dd7dde (patch)
tree1d21d33da3d7d34cbda190321064b5710d102acb /Dockerfile-debian-10-sqlite
parent799449bf46bd6da86fea15e57e27025f4ce2864d (diff)
downloadmediagoblin-6e6baa15cccdbc709ff39872613a7cfe08dd7dde.tar.lz
mediagoblin-6e6baa15cccdbc709ff39872613a7cfe08dd7dde.tar.xz
mediagoblin-6e6baa15cccdbc709ff39872613a7cfe08dd7dde.zip
Build docs in Docker and CI.
Diffstat (limited to 'Dockerfile-debian-10-sqlite')
-rw-r--r--Dockerfile-debian-10-sqlite9
1 files changed, 6 insertions, 3 deletions
diff --git a/Dockerfile-debian-10-sqlite b/Dockerfile-debian-10-sqlite
index 7899731f..8a409093 100644
--- a/Dockerfile-debian-10-sqlite
+++ b/Dockerfile-debian-10-sqlite
@@ -12,13 +12,13 @@
#
# To build this Docker image, run:
#
-# docker build -t mediagoblin-python3 - < Dockerfile-debian-python3-sqlite
+# docker build -t mediagoblin - < Dockerfile-debian-10-sqlite
#
# The "- < Dockerfile" format advises Docker not to include the current
# directory as build context. Alternatively the following provides build
# context:
#
-# docker build -t mediagoblin-python3 -f Dockerfile-debian-python3-sqlite .
+# docker build -t mediagoblin -f Dockerfile-debian-10-sqlite .
#
# Before running the image you first need to first assign the "mediagoblin" and
# "user_dev" directories to an artificial group (1024) on the host that is
@@ -30,7 +30,7 @@
#
# Then you can run the image with the upstream MediaGoblin code:
#
-# docker run --interactive --tty --publish 6543:6543 mediagoblin-python3
+# docker run --interactive --tty --publish 6543:6543 mediagoblin
#
# Or you can run with your local "mediagoblin" and "user_dev" directories
# bind-mounted into the container. This provides automatic code reloading and
@@ -175,6 +175,9 @@ RUN ./bin/pip install py3exiv2
# Run the tests.
RUN ./bin/python -m pytest -rs ./mediagoblin/tests --boxed
+# Build the documentation.
+RUN cd docs && make html
+
# Only safe if being run on a clean git checkout. Otherwise you may have already
# customised mediagoblin.ini to already install these.
RUN echo '[[mediagoblin.media_types.audio]]' >> mediagoblin.ini