code and commands shared between obs-team repositories
Configure service-status
in a couple of different ways:
-
A
[tool.service-status]
section in apyproject.toml
file in the current working directory. -
Overridden by command-line arguments.
Keys:
main_branch
The name of the main branch in the git repository.
hosts
A list of hosts which have a /__version__
Dockerflow endpoint in the
form of:
ENVIRONMENTNAME=HOST
For example:
prod=https://crash-stats.mozilla.org
Example pyproject.toml
:
[tool.service-status]
main_branch = "main"
hosts = [
"stage=https://crash-stats.allizom.org",
"prod=https://crash-stats.mozilla.org",
]
For command help:
service-status --help
Checks source files for license header.
For command help:
license-check --help
Wraps a command such that if it fails, an error report is sent to the Sentry service specified by
SENTRY_DSN
in the environment.
For command help:
sentry-wrap --help
Provides cli interfaces for interacting with various cloud service emulators used in our local dev environments.
For command help:
gcs-cli --help
pubsub-cli --help
Performs GET requests against given URL until HTTP 200 or exceeds wait timeout.
For command help:
waitfor --help
service-status
and licence-check
were moved here from https://github.com/willkg/socorro-release,
while other scripts were moved here because they were being reused across various obs-team projects
such as https://github.com/mozilla-services/socorro and https://github.com/mozilla-services/antenna