Skip to content
Snippets Groups Projects
Commit d3b1b2bd authored by Ryan Sanford's avatar Ryan Sanford
Browse files

Integrate doc building into docker image

- Install pip requirements in Dockerfile
- Pin the versions of the documentation pip packages.
- Rebuild docs on launch of uswgi
parent 638701e0
No related branches found
No related tags found
No related merge requests found
......@@ -59,11 +59,12 @@ VOLUME /var/scitran/logs
#
# Split this out for better cache re-use.
#
COPY requirements.txt docker/requirements-docker.txt /var/scitran/code/api/
COPY requirements.txt docker/requirements-docker.txt docs/requirements-docs.txt /var/scitran/code/api/
RUN pip install --upgrade pip wheel setuptools \
&& pip install -r /var/scitran/code/api/requirements-docker.txt \
&& pip install -r /var/scitran/code/api/requirements.txt
&& pip install -r /var/scitran/code/api/requirements.txt \
&& pip install -r /var/scitran/code/api/requirements-docs.txt
# Copy full repo
......
......@@ -6,3 +6,6 @@ master = True
die-on-term = True
processes = 4
threads = 2
static-map = /api/docs=/var/scitran/code/api/docs/build
static-index = index.html
......@@ -38,6 +38,8 @@ if [ ! -z "${PRE_RUNAS_CMD}" ]; then
fi
if [ "$1" = 'uwsgi' ]; then
gosu ${RUNAS_USER} /var/scitran/code/api/docs/build-docs.sh
exec gosu ${RUNAS_USER} "$@"
fi
......
Sphinx
sphinxcontrib-httpdomain
Sphinx==1.4.1
sphinxcontrib-httpdomain==1.4.0
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment