-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Apply consistent formatting to all source and doc files
Fixes #419
- Loading branch information
Göran Sander
committed
Jun 30, 2022
1 parent
05412b9
commit 2f1634e
Showing
20 changed files
with
16,755 additions
and
17,386 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,44 @@ | ||
version: "2" # required to adjust maintainability checks | ||
version: "2" # required to adjust maintainability checks | ||
plugins: | ||
eslint: | ||
enabled: true | ||
fixme: | ||
enabled: true | ||
markdownlint: | ||
enabled: true | ||
nodesecurity: | ||
enabled: true | ||
eslint: | ||
enabled: true | ||
fixme: | ||
enabled: true | ||
markdownlint: | ||
enabled: true | ||
nodesecurity: | ||
enabled: true | ||
|
||
checks: | ||
argument-count: | ||
config: | ||
threshold: 6 | ||
complex-logic: | ||
config: | ||
threshold: 4 | ||
file-lines: | ||
config: | ||
threshold: 250 | ||
method-complexity: | ||
config: | ||
threshold: 10 | ||
method-count: | ||
config: | ||
threshold: 20 | ||
method-lines: | ||
config: | ||
threshold: 75 | ||
nested-control-flow: | ||
config: | ||
threshold: 4 | ||
return-statements: | ||
config: | ||
threshold: 4 | ||
similar-code: | ||
enabled: false | ||
identical-code: | ||
config: | ||
threshold: # language-specific defaults. an override will affect all languages. | ||
argument-count: | ||
config: | ||
threshold: 6 | ||
complex-logic: | ||
config: | ||
threshold: 4 | ||
file-lines: | ||
config: | ||
threshold: 250 | ||
method-complexity: | ||
config: | ||
threshold: 10 | ||
method-count: | ||
config: | ||
threshold: 20 | ||
method-lines: | ||
config: | ||
threshold: 75 | ||
nested-control-flow: | ||
config: | ||
threshold: 4 | ||
return-statements: | ||
config: | ||
threshold: 4 | ||
similar-code: | ||
enabled: false | ||
identical-code: | ||
config: | ||
threshold: # language-specific defaults. an override will affect all languages. | ||
|
||
exclude_patterns: | ||
- "**/node_modules/" | ||
- "**/node_modules/" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"src":"7.1.11",".":"9.0.2"} | ||
{ "src": "7.1.11", ".": "9.0.2" } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"editor.tabSize": 4 | ||
} | ||
"editor.tabSize": 4 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,22 @@ | ||
# docker-compose.yml | ||
version: '3.3' | ||
version: "3.3" | ||
services: | ||
butler-sos: | ||
image: ptarmiganlabs/butler-sos:latest | ||
container_name: butler-sos | ||
restart: always | ||
ports: | ||
- "9997:9997" | ||
- "9996:9996" | ||
- "9842:9842" | ||
volumes: | ||
# Make config file accessible outside of container | ||
- "./config:/nodeapp/config" | ||
- "./log:/nodeapp/log" | ||
environment: | ||
- "NODE_ENV=production" # Means that Butler SOS will read config data from production.yaml | ||
logging: | ||
driver: "json-file" | ||
options: | ||
max-file: "5" | ||
max-size: "5m" | ||
butler-sos: | ||
image: ptarmiganlabs/butler-sos:latest | ||
container_name: butler-sos | ||
restart: always | ||
ports: | ||
- "9997:9997" | ||
- "9996:9996" | ||
- "9842:9842" | ||
volumes: | ||
# Make config file accessible outside of container | ||
- "./config:/nodeapp/config" | ||
- "./log:/nodeapp/log" | ||
environment: | ||
- "NODE_ENV=production" # Means that Butler SOS will read config data from production.yaml | ||
logging: | ||
driver: "json-file" | ||
options: | ||
max-file: "5" | ||
max-size: "5m" |
92 changes: 46 additions & 46 deletions
92
docs/docker-compose/docker-compose_fullstack_influxdb.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1,52 @@ | ||
# docker-compose.yml | ||
version: '3.3' | ||
version: "3.3" | ||
services: | ||
butler-sos: | ||
image: ptarmiganlabs/butler-sos:latest | ||
container_name: butler-sos | ||
restart: always | ||
volumes: | ||
# Make config file accessible outside of container | ||
- "./config:/nodeapp/config" | ||
- "./log:/nodeapp/log" | ||
environment: | ||
- "NODE_ENV=production_influxdb" # Means that Butler SOS will read config data from production.yaml | ||
logging: | ||
driver: "json-file" | ||
options: | ||
max-file: "5" | ||
max-size: "5m" | ||
networks: | ||
- senseops | ||
butler-sos: | ||
image: ptarmiganlabs/butler-sos:latest | ||
container_name: butler-sos | ||
restart: always | ||
volumes: | ||
# Make config file accessible outside of container | ||
- "./config:/nodeapp/config" | ||
- "./log:/nodeapp/log" | ||
environment: | ||
- "NODE_ENV=production_influxdb" # Means that Butler SOS will read config data from production.yaml | ||
logging: | ||
driver: "json-file" | ||
options: | ||
max-file: "5" | ||
max-size: "5m" | ||
networks: | ||
- senseops | ||
|
||
influxdb: | ||
image: influxdb:1.8.10 | ||
container_name: influxdb | ||
restart: always | ||
volumes: | ||
- ./influxdb/data:/var/lib/influxdb # Mount for influxdb data directory | ||
- ./influxdb/config/:/etc/influxdb/ # Mount for influxdb configuration | ||
ports: | ||
# The API for InfluxDB is served on port 8086 | ||
- "8086:8086" | ||
- "8082:8082" | ||
environment: | ||
# Disable usage reporting | ||
- "INFLUXDB_REPORTING_DISABLED=true" | ||
networks: | ||
- senseops | ||
influxdb: | ||
image: influxdb:1.8.10 | ||
container_name: influxdb | ||
restart: always | ||
volumes: | ||
- ./influxdb/data:/var/lib/influxdb # Mount for influxdb data directory | ||
- ./influxdb/config/:/etc/influxdb/ # Mount for influxdb configuration | ||
ports: | ||
# The API for InfluxDB is served on port 8086 | ||
- "8086:8086" | ||
- "8082:8082" | ||
environment: | ||
# Disable usage reporting | ||
- "INFLUXDB_REPORTING_DISABLED=true" | ||
networks: | ||
- senseops | ||
|
||
grafana: | ||
image: grafana/grafana:latest | ||
container_name: grafana | ||
restart: always | ||
ports: | ||
- "3000:3000" | ||
volumes: | ||
- ./grafana/data:/var/lib/grafana | ||
networks: | ||
- senseops | ||
grafana: | ||
image: grafana/grafana:latest | ||
container_name: grafana | ||
restart: always | ||
ports: | ||
- "3000:3000" | ||
volumes: | ||
- ./grafana/data:/var/lib/grafana | ||
networks: | ||
- senseops | ||
|
||
networks: | ||
senseops: | ||
driver: bridge | ||
senseops: | ||
driver: bridge |
134 changes: 65 additions & 69 deletions
134
docs/docker-compose/docker-compose_fullstack_prometheus.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,76 +1,72 @@ | ||
# docker-compose_fullstack_prometheus.yml | ||
version: '3.3' | ||
version: "3.3" | ||
services: | ||
butler-sos: | ||
image: ptarmiganlabs/butler-sos:latest | ||
container_name: butler-sos | ||
restart: always | ||
volumes: | ||
# Make config file accessible outside of container | ||
- "./config:/nodeapp/config" | ||
- "./log:/nodeapp/log" | ||
environment: | ||
- "NODE_ENV=production_prometheus" # Means that Butler SOS will read config data from production_prometheus.yaml | ||
logging: | ||
driver: "json-file" | ||
options: | ||
max-file: "5" | ||
max-size: "5m" | ||
networks: | ||
- senseops | ||
butler-sos: | ||
image: ptarmiganlabs/butler-sos:latest | ||
container_name: butler-sos | ||
restart: always | ||
volumes: | ||
# Make config file accessible outside of container | ||
- "./config:/nodeapp/config" | ||
- "./log:/nodeapp/log" | ||
environment: | ||
- "NODE_ENV=production_prometheus" # Means that Butler SOS will read config data from production_prometheus.yaml | ||
logging: | ||
driver: "json-file" | ||
options: | ||
max-file: "5" | ||
max-size: "5m" | ||
networks: | ||
- senseops | ||
|
||
prometheus: | ||
image: prom/prometheus:latest | ||
container_name: prometheus | ||
volumes: | ||
- ./prometheus/:/etc/prometheus/ | ||
- prometheus_data:/prometheus | ||
command: | ||
- "--config.file=/etc/prometheus/prometheus.yml" | ||
- "--storage.tsdb.path=/prometheus" | ||
- "--web.console.libraries=/usr/share/prometheus/console_libraries" | ||
- "--web.console.templates=/usr/share/prometheus/consoles" | ||
- "--log.level=debug" | ||
ports: | ||
- 9090:9090 | ||
links: | ||
- cadvisor:cadvisor | ||
- alertmanager:alertmanager | ||
depends_on: | ||
- cadvisor | ||
networks: | ||
- senseops | ||
restart: always | ||
|
||
prometheus: | ||
image: prom/prometheus:latest | ||
container_name: prometheus | ||
volumes: | ||
- ./prometheus/:/etc/prometheus/ | ||
- prometheus_data:/prometheus | ||
command: | ||
- '--config.file=/etc/prometheus/prometheus.yml' | ||
- '--storage.tsdb.path=/prometheus' | ||
- '--web.console.libraries=/usr/share/prometheus/console_libraries' | ||
- '--web.console.templates=/usr/share/prometheus/consoles' | ||
- '--log.level=debug' | ||
ports: | ||
- 9090:9090 | ||
links: | ||
- cadvisor:cadvisor | ||
- alertmanager:alertmanager | ||
depends_on: | ||
- cadvisor | ||
networks: | ||
- senseops | ||
restart: always | ||
|
||
|
||
alertmanager: | ||
image: prom/alertmanager | ||
container_name: alertmanager | ||
ports: | ||
- 9093:9093 | ||
volumes: | ||
- ./alertmanager/:/etc/alertmanager/ | ||
networks: | ||
- senseops | ||
restart: always | ||
command: | ||
- '--config.file=/etc/alertmanager/config.yml' | ||
- '--storage.path=/alertmanager' | ||
|
||
|
||
grafana: | ||
image: grafana/grafana:latest | ||
container_name: grafana | ||
restart: always | ||
ports: | ||
- "3000:3000" | ||
volumes: | ||
- ./grafana/data:/var/lib/grafana | ||
networks: | ||
- senseops | ||
alertmanager: | ||
image: prom/alertmanager | ||
container_name: alertmanager | ||
ports: | ||
- 9093:9093 | ||
volumes: | ||
- ./alertmanager/:/etc/alertmanager/ | ||
networks: | ||
- senseops | ||
restart: always | ||
command: | ||
- "--config.file=/etc/alertmanager/config.yml" | ||
- "--storage.path=/alertmanager" | ||
|
||
grafana: | ||
image: grafana/grafana:latest | ||
container_name: grafana | ||
restart: always | ||
ports: | ||
- "3000:3000" | ||
volumes: | ||
- ./grafana/data:/var/lib/grafana | ||
networks: | ||
- senseops | ||
|
||
networks: | ||
senseops: | ||
driver: bridge | ||
senseops: | ||
driver: bridge |
Oops, something went wrong.