-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
7,439 additions
and
448 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 |
---|---|---|
|
@@ -4,19 +4,20 @@ NAME=ISP-Checker | |
VERSION=1.2 | ||
AUTHOR="Facu de la Cruz <[email protected]>" | ||
|
||
COMPOSE_FILE="./docker/docker-compose.yaml" | ||
COMPOSE_FILE="./docker-compose/docker-compose.yaml" | ||
|
||
default: | ||
@echo "USAGE: make <TARGET>" | ||
@echo "" | ||
@echo "\t- install: Bootstrap components." | ||
@echo "\t- start : Start entire stack." | ||
@echo "\t- stop : Stops entire stack." | ||
@echo "\t- restart: Restart stack.\n" | ||
@echo "\t- install : Bootstrap components in docker-compose" | ||
@echo "\t- kube-install: Bootstrap components in K8s cluster." | ||
@echo "\t- start : Start entire stack." | ||
@echo "\t- stop : Stops entire stack." | ||
@echo "\t- restart : Restart stack.\n" | ||
|
||
install: | ||
$(info Make: Creating persistent Docker volumes) | ||
@bash ./bin/inject_credentials.sh | ||
@bash ./docker-compose/bin/inject_credentials.sh | ||
@docker volume create --name=influxdb-storage | ||
@docker volume create --name=grafana-storage | ||
|
||
|
@@ -32,6 +33,10 @@ install: | |
-s --location -XPOST 'http://admin:[email protected]:3000/api/dashboards/db' \ | ||
--header 'Content-Type: application/json' -d @/app/network-dashboard.json > /dev/null | ||
|
||
@docker run --network host -v "$(PWD)/grafana:/app" --rm curlimages/curl:7.73.0 \ | ||
-s --location -XPOST 'http://admin:[email protected]:3000/api/dashboards/db' \ | ||
--header 'Content-Type: application/json' -d @/app/raspberry-dashboard.json > /dev/null | ||
|
||
@docker run --network host -v "$(PWD)/grafana:/app" --rm curlimages/curl:7.73.0 \ | ||
-s --location -XPUT 'http://admin:[email protected]:3000/api/user/preferences' \ | ||
--header 'Content-Type: application/json' -d @/app/default.json > /dev/null | ||
|
@@ -41,6 +46,9 @@ install: | |
@echo "Updated credentials after your first login!." | ||
$(info Make: Bootstrap done) | ||
|
||
kube-install: | ||
kubectl apply -f https://raw.githubusercontent.com/fmdlc/ISP-Checker/master/kubernetes/ISP-Checker-deploy.yaml | ||
|
||
start: | ||
docker-compose -f $(COMPOSE_FILE) up -d | ||
|
||
|
@@ -55,4 +63,3 @@ prune: | |
docker rm `docker ps -a -q` | ||
docker volume rm influxdb-storage | ||
docker volume rm grafana-storage | ||
|
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
4 changes: 2 additions & 2 deletions
4
ISP-Checker/bin/inject_credentials.sh → docker-compose/bin/inject_credentials.sh
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
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
Oops, something went wrong.