2017-03-09 15:12:01 -05:00
|
|
|
# Image config - Environment variables
|
|
|
|
|
|
|
|
|
|
|
|
Below is a list of environment variables that can be configured when creating the docker image (as
|
|
|
|
described [here](vm-setup--create-docker-image.md)). An up-to-date list of the configurable
|
|
|
|
environment variables and their default values can be found in the
|
|
|
|
[Dockerfile](../dockerbuild/Dockerfile).
|
|
|
|
|
|
|
|
**Note:**
|
|
|
|
Each variable has a `TEST_` prefixed counterpart, which is used for testing purposes. In most cases
|
|
|
|
you don't need to specify values for those.
|
|
|
|
|
2018-05-09 13:54:53 -04:00
|
|
|
- `AIO_ARTIFACT_PATH`:
|
|
|
|
The path used to identify the AIO build artifact on the CircleCI servers. This should be equal to
|
|
|
|
the path given in the `.circleci/config.yml` file for the
|
|
|
|
`aio_preview->steps->store_artifacts->destination` key.
|
|
|
|
|
2017-03-09 15:12:01 -05:00
|
|
|
- `AIO_BUILDS_DIR`:
|
2018-05-09 13:54:53 -04:00
|
|
|
The directory (inside the container) where the hosted build artifacts are kept.
|
2017-03-09 15:12:01 -05:00
|
|
|
|
|
|
|
- `AIO_DOMAIN_NAME`:
|
|
|
|
The domain name of the server.
|
|
|
|
|
|
|
|
- `AIO_GITHUB_ORGANIZATION`:
|
2018-05-09 13:54:53 -04:00
|
|
|
The GitHub organization whose teams are whitelisted for accepting build artifacts.
|
2017-03-09 15:12:01 -05:00
|
|
|
See also `AIO_GITHUB_TEAM_SLUGS`.
|
|
|
|
|
2018-05-09 13:54:53 -04:00
|
|
|
- `AIO_GITHUB_REPO`:
|
|
|
|
The Github repository for which PRs will be hosted.
|
|
|
|
|
2017-03-09 15:12:01 -05:00
|
|
|
- `AIO_GITHUB_TEAM_SLUGS`:
|
2018-05-09 13:54:53 -04:00
|
|
|
A comma-separated list of teams, whose authors are allowed to preview PRs.
|
2017-03-09 15:12:01 -05:00
|
|
|
See also `AIO_GITHUB_ORGANIZATION`.
|
|
|
|
|
|
|
|
- `AIO_NGINX_HOSTNAME`:
|
|
|
|
The internal hostname for accessing the nginx server. This is mostly used for performing a
|
|
|
|
periodic health-check.
|
|
|
|
|
|
|
|
- `AIO_NGINX_PORT_HTTP`:
|
|
|
|
The port number on which nginx listens for HTTP connections. This should be mapped to the
|
|
|
|
corresponding port on the host VM (as described [here](vm-setup--start-docker-container.md)).
|
|
|
|
|
|
|
|
- `AIO_NGINX_PORT_HTTPS`:
|
|
|
|
The port number on which nginx listens for HTTPS connections. This should be mapped to the
|
|
|
|
corresponding port on the host VM (as described [here](vm-setup--start-docker-container.md)).
|
|
|
|
|
2018-05-09 13:54:53 -04:00
|
|
|
- `AIO_SIGNIFICANT_FILES_PATTERN`:
|
|
|
|
The RegExp that determines whether a changed file indicates that a new preview needs to
|
|
|
|
be deployed. For example, if there is a changed file in the `/packages` directory then
|
|
|
|
some of the API docs might have changed, so we need to create a new preview.
|
2017-03-09 15:12:01 -05:00
|
|
|
|
2017-06-18 18:15:07 -04:00
|
|
|
- `AIO_TRUSTED_PR_LABEL`:
|
|
|
|
The PR whose presence indicates the PR has been manually verified and is allowed to have its
|
|
|
|
build artifacts publicly served. This is useful for enabling previews for any PR (not only those
|
|
|
|
from trusted authors).
|
|
|
|
|
2017-03-09 15:12:01 -05:00
|
|
|
- `AIO_UPLOAD_HOSTNAME`:
|
|
|
|
The internal hostname for accessing the Node.js upload-server. This is used by nginx for
|
|
|
|
delegating upload requests and also for performing a periodic health-check.
|
|
|
|
|
|
|
|
- `AIO_UPLOAD_MAX_SIZE`:
|
|
|
|
The maximum allowed size for the uploaded gzip archive containing the build artifacts. Files
|
|
|
|
larger than this will be rejected.
|
|
|
|
|
|
|
|
- `AIO_UPLOAD_PORT`:
|
|
|
|
The port number on which the Node.js upload-server listens for HTTP connections. This is used by
|
|
|
|
nginx for delegating upload requests and also for performing a periodic health-check.
|