Add react build env vars to Dockerfile
So that people can re-use the Dockerfiles to build zuul images but with different flags set, plumb the env vars through here as ARG entries. Also, fix 2 doc references that were misspelled. Change-Id: I320a496eadf4132fc0583dd48a87024a2ff61a07
This commit is contained in:
parent
3294e6e3e3
commit
73feab3b13
|
@ -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
|
||||
|
|
|
@ -335,7 +335,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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue