oncall
oncall copied to clipboard
readme: step 2 > cmd does not ouput a proper .env file
What this PR does
In the readme - step 2
When generating the .env file using Command Prompt (cmd) it outputs a .env file that Docker fails to read when trying to spin up the container.
line 1: unexpected character "\"" in variable name "\"DOMAIN=http://localhost:8080#
.env file produced by cmd
"DOMAIN=http://localhost:8080# Remove 'with_grafana' below if you want to use existing grafana# Add 'with_prometheus' below to optionally enable a local prometheus for oncall metrics# e.g. COMPOSE_PROFILES=with_grafana,with_prometheusCOMPOSE_PROFILES=with_grafana# to setup an auth token for prometheus exporter metrics:# PROMETHEUS_EXPORTER_SECRET=my_random_prometheus_secret# also, make sure to enable the /metrics endpoint:# FEATURE_PROMETHEUS_EXPORTER_ENABLED=TrueSECRET_KEY=my_random_secret_must_be_more_than_32_characters_long"
However, if using PowerShell on Windows, the output format is readable and the user can start the container.
DOMAIN=http://localhost:8080
# Remove 'with_grafana' below if you want to use existing grafana
# Add 'with_prometheus' below to optionally enable a local prometheus for oncall metrics
# e.g. COMPOSE_PROFILES=with_grafana,with_prometheus
COMPOSE_PROFILES=with_grafana
# to setup an auth token for prometheus exporter metrics:
# PROMETHEUS_EXPORTER_SECRET=my_random_prometheus_secret
# also, make sure to enable the /metrics endpoint:
# FEATURE_PROMETHEUS_EXPORTER_ENABLED=True
SECRET_KEY=my_random_secret_must_be_more_than_32_characters_long
Checklist
- [ ] Unit, integration, and e2e (if applicable) tests updated
- [ ] Documentation added (or
pr:no public docsPR label added if not required) - [ ] Added the relevant release notes label (see labels prefixed w/
release:). These labels dictate how your PR will show up in the autogenerated release notes.
This pull request has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in 30 days if no further activity occurs. Please feel free to give a status update now, ping for review, or re-open when it's ready. Thank you for your contributions!
This pull request has been automatically closed because it has not had activity in the last 30 days. Please feel free to give a status update now, ping for review, or re-open when it's ready. Thank you for your contributions!