Commit 0be62de
authored
Make docker compose logging options configurable (#636)
## Overview
Introduce a new component `components/logging` that sets default logging
options for all docker compose services started by `birdhouse-deploy`.
This component is enabled by default.
The default value is set by the `BIRDHOUSE_LOGGING_DEFAULT` environment
variable. To change the default value, set the
`BIRDHOUSE_LOGGING_DEFAULT` to a JSON string in the local environment
file that contains a valid [docker compose logging
configuration](https://docs.docker.com/reference/compose-file/services/#logging).
For example, to set the default driver to "local" set the following in
your local environment file:
```sh
export BIRDHOUSE_LOGGING_DEFAULT='{"driver": "local"}'
```
You can also override logging options for a single service using
environment variables using a variable
`BIRDHOUSE_LOGGING_<service_name>` where `<service_name>` is the
uppercase name of the docker compose service with hyphens replaced with
underscores. For example, to set the default driver to "local" only for
the `weaver-worker` service:
```sh
export BIRDHOUSE_LOGGING_WEAVER_WORKER='{"driver": "local"}'
```
Logging options can can also be set directly in a component's
``docker-compose-extra.yml`` file.
The order of precedence for logging options are as follows:
1. logging options specified by `BIRDHOUSE_LOGGING_<service_name>`
environment variable
2. logging options set in a `docker-compose-extra.yml` file
3. logging options specified by `BIRDHOUSE_LOGGING_DEFAULT` environment
variable
## Changes
**Non-breaking changes**
- Adds new required component
**Breaking changes**
- None
## Related Issue / Discussion
- Initially from:
#631 (comment)
## Additional Information
## CI Operations
<!--
The test suite can be run using a different DACCS config with
``birdhouse_daccs_configs_branch: branch_name`` in the PR description.
To globally skip the test suite regardless of the commit message use
``birdhouse_skip_ci`` set to ``true`` in the PR description.
Using ``[<cmd>]`` (with the brackets) where ``<cmd> = skip ci`` in the
commit message will override ``birdhouse_skip_ci`` from the PR
description.
Such commit command can be used to override the PR description behavior
for a specific commit update.
However, a commit message cannot 'force run' a PR which the description
turns off the CI.
To run the CI, the PR should instead be updated with a ``true`` value,
and a running message can be posted in following PR comments to trigger
tests once again.
-->
birdhouse_daccs_configs_branch: master
birdhouse_skip_ci: falseFile tree
68 files changed
+101
-309
lines changed- birdhouse
- components
- canarie-api
- cowbird
- config
- canarie-api
- geoserver
- magpie
- proxy
- dggs
- config
- magpie
- twitcher
- finch
- config/wps_outputs-volume
- geoserver
- hummingbird
- config
- data-volume
- wps_outputs-volume
- jupyterhub
- logging
- magpie
- mongodb
- monitoring
- config
- magpie
- proxy
- postgres
- proxy
- raven
- config/wps_outputs-volume
- scheduler
- stac-browser
- stac
- config
- magpie
- twitcher
- thredds
- twitcher
- weaver
- config
- canarie-api
- magpie
- proxy
- twitcher
- deprecated-components
- catalog
- flyingpigeon
- config/wps_outputs-volume
- frontend
- malleefowl
- config
- data-volume
- wps_outputs-volume
- ncwms2
- config/wps_outputs-volume
- phoenix
- portainer
- project-api
- solr
- optional-components
- generic_bird/config/wps_outputs-volume
- prometheus-log-parser
- prometheus-longterm-metrics
- config
- magpie
- proxy
- prometheus-longterm-rules/config/monitoring
- stac-populator
- thanos
- config
- magpie
- proxy
- tests/unit
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
68 files changed
+101
-309
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
20 | 52 | | |
21 | 53 | | |
22 | 54 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1040 | 1040 | | |
1041 | 1041 | | |
1042 | 1042 | | |
| 1043 | + | |
| 1044 | + | |
| 1045 | + | |
| 1046 | + | |
| 1047 | + | |
| 1048 | + | |
| 1049 | + | |
| 1050 | + | |
| 1051 | + | |
| 1052 | + | |
| 1053 | + | |
| 1054 | + | |
| 1055 | + | |
| 1056 | + | |
| 1057 | + | |
| 1058 | + | |
| 1059 | + | |
| 1060 | + | |
| 1061 | + | |
| 1062 | + | |
| 1063 | + | |
| 1064 | + | |
| 1065 | + | |
| 1066 | + | |
| 1067 | + | |
| 1068 | + | |
| 1069 | + | |
| 1070 | + | |
| 1071 | + | |
| 1072 | + | |
| 1073 | + | |
| 1074 | + | |
| 1075 | + | |
Lines changed: 0 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | 1 | | |
10 | 2 | | |
11 | 3 | | |
| |||
19 | 11 | | |
20 | 12 | | |
21 | 13 | | |
22 | | - | |
23 | 14 | | |
24 | 15 | | |
25 | 16 | | |
| |||
44 | 35 | | |
45 | 36 | | |
46 | 37 | | |
47 | | - | |
48 | 38 | | |
49 | 39 | | |
50 | 40 | | |
| |||
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | 1 | | |
3 | 2 | | |
4 | 3 | | |
| |||
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | 1 | | |
3 | 2 | | |
4 | 3 | | |
| |||
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | 1 | | |
3 | 2 | | |
4 | 3 | | |
| |||
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | 1 | | |
3 | 2 | | |
4 | 3 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | 1 | | |
10 | 2 | | |
11 | 3 | | |
| |||
43 | 35 | | |
44 | 36 | | |
45 | 37 | | |
46 | | - | |
47 | 38 | | |
48 | 39 | | |
49 | 40 | | |
| |||
79 | 70 | | |
80 | 71 | | |
81 | 72 | | |
82 | | - | |
83 | 73 | | |
84 | 74 | | |
85 | 75 | | |
| |||
91 | 81 | | |
92 | 82 | | |
93 | 83 | | |
94 | | - | |
95 | 84 | | |
96 | 85 | | |
97 | 86 | | |
| |||
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | 1 | | |
3 | 2 | | |
4 | 3 | | |
| |||
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | 1 | | |
3 | 2 | | |
4 | 3 | | |
| |||
0 commit comments