diff --git a/Dockerfile b/Dockerfile index 01f70f4f99..019ba42971 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,6 +15,11 @@ FROM opendevorg/python-builder as builder +# Optional location of Zuul API endpoint. +ARG REACT_APP_ZUUL_API +# Optional flag to disable React Service Worker. (set to true to disable) +ARG REACT_APP_DISABLE_SERVICE_WORKER + COPY . /tmp/src RUN /tmp/src/tools/install-js-tools.sh RUN assemble diff --git a/doc/source/admin/installation.rst b/doc/source/admin/installation.rst index 6408b6d015..900d2ffa81 100644 --- a/doc/source/admin/installation.rst +++ b/doc/source/admin/installation.rst @@ -338,7 +338,7 @@ Static External deployments. In order to serve the zuul dashboard code from an external static location, -``REACT_APP_ZUUl_API`` must be set at javascript build time: +``REACT_APP_ZUUL_API`` must be set at javascript build time: .. code-block:: bash diff --git a/doc/source/developer/javascript.rst b/doc/source/developer/javascript.rst index 7a2c465037..72b88657e4 100644 --- a/doc/source/developer/javascript.rst +++ b/doc/source/developer/javascript.rst @@ -156,7 +156,7 @@ api response needs to be set in the ``web/public/api`` directory. curl -o public/api/${route} https://zuul.openstack.org/api/${route} done -To use an existing zuul api, uses the REACT_APP_ZUUl_API environment +To use an existing zuul api, uses the REACT_APP_ZUUL_API environment variable: .. code-block:: bash