forked from fmdlc/ISP-Checker
-
Notifications
You must be signed in to change notification settings - Fork 1
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
4 changed files
with
48 additions
and
12 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,4 +1,4 @@ | ||
.PHONY: default install start stop restart prune | ||
.PHONY: default install start stop restart prune provision docker-bootstrap | ||
|
||
NAME=ISP-Checker | ||
VERSION=1.2 | ||
|
@@ -15,7 +15,13 @@ default: | |
@echo "\t- stop : Stops entire stack." | ||
@echo "\t- restart : Restart stack.\n" | ||
|
||
install: | ||
install: docker-bootstrap provision | ||
@echo "\nOpen your browser a points to http://127.0.0.1:3000/\n" | ||
@echo "Default Username: admin | Default Password: admin" | ||
@echo "Updated credentials after your first login!." | ||
$(info Make: Bootstrap done) | ||
|
||
docker-bootstrap: | ||
$(info Make: Creating persistent Docker volumes) | ||
@bash ./docker-compose/bin/inject_credentials.sh | ||
@docker volume create --name=influxdb-storage | ||
|
@@ -24,28 +30,29 @@ install: | |
@docker-compose -f $(COMPOSE_FILE) up -d | ||
@sleep 10 | ||
|
||
provision: | ||
$(info Make: Initializing datasources and dashboards) | ||
@docker run --network host -v "$(PWD)/grafana:/app" --rm curlimages/curl:7.73.0 \ | ||
|
||
@echo ">> Provisioning: InfluxDB datasource\n" | ||
@docker run --network host -v "$(PWD)/docker-compose/grafana:/app" --rm curlimages/curl:7.73.0 \ | ||
-s --location -XPOST 'http://admin:[email protected]:3000/api/datasources' \ | ||
--header 'Content-Type: application/json' -d @/app/datasource.json > /dev/null | ||
|
||
@docker run --network host -v "$(PWD)/grafana:/app" --rm curlimages/curl:7.73.0 \ | ||
@echo ">> Provisioning: Network dashboard\n" | ||
@docker run --network host -v "$(PWD)/docker-compose/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/network-dashboard.json > /dev/null | ||
|
||
@docker run --network host -v "$(PWD)/grafana:/app" --rm curlimages/curl:7.73.0 \ | ||
@echo ">> Provisioning: Raspberry dashboard\n" | ||
@docker run --network host -v "$(PWD)/docker-compose/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 \ | ||
@echo ">> Provisioning: Network preferences\n" | ||
@docker run --network host -v "$(PWD)/docker-compose/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 | ||
|
||
@echo "\nOpen your browser a points to http://127.0.0.1:3000/\n" | ||
@echo "Default Username: admin | Default Password: admin" | ||
@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 | ||
|
||
|
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
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