diff --git a/.drone.yml b/.drone.yml index dfc531b..98ca28b 100644 --- a/.drone.yml +++ b/.drone.yml @@ -55,6 +55,10 @@ steps: - cd /mnt/md0/infra/monitoring - git pull - make restart + - name: cleanup + commands: + - cd /mnt/md0/infra/homeassistant + - make cleanup trigger: branch: diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..b195b12 --- /dev/null +++ b/LICENSE @@ -0,0 +1,19 @@ +MIT License Copyright (c) 2021 fedy95 + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is furnished +to do so, subject to the following conditions: + +The above copyright notice and this permission notice (including the next +paragraph) shall be included in all copies or substantial portions of the +Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS +OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF +OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/Makefile b/Makefile index 125d0b1..5a917cd 100644 --- a/Makefile +++ b/Makefile @@ -32,7 +32,11 @@ lint-json: $(LINT-JSON-CMD) -qc grafana/provisioning/dashboards/smart-4.json restart: - docker-compose -f docker-compose.yml down - docker-compose -f docker-compose.yml up -d + docker-compose -f docker-compose.yml pull + docker-compose -f docker-compose.yml restart + +cleanup: + docker system prune --all --force + docker system prune --volumes --force .DEFAULT_GOAL := lint diff --git a/README.md b/README.md index 538e36f..e90c5b0 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,6 @@ -### monitoring -[![Build Status](https://drone.fedy95.com/api/badges/infra/monitoring/status.svg)](https://drone.fedy95.com/infra/monitoring) +### monitoring [![Build Status](https://drone.fedy95.com/api/badges/infra/monitoring/status.svg)](https://drone.fedy95.com/infra/monitoring) + +--- ### services - [Loki/Promtail](https://github.com/grafana/loki)