peertube-instance-index-filter/docker/Makefile

22 lines
1,004 B
Makefile
Raw Normal View History

2025-06-23 09:40:20 +03:00
### help: Show help message (default target)
.PHONY: help
help:
@printf "%s\n\n" "make: List of possible targets:"
@grep '^### .*:' $(lastword $(MAKEFILE_LIST)) | sed 's/^### \([^:]*\): \(.*\)/\1:\t\2/' | column -ts "$$(printf '\t')"
### add-index: Add index host. Arguments: url and instance-url (optional)
.PHONY: add-index
add-index:
2025-06-23 12:55:05 +03:00
docker compose -f docker-compose.yml exec -it peertube-instance-index-filter peertube-instance-index-filter -command index -url $(url) -instance-url $(instance-url)
2025-06-23 09:40:20 +03:00
### reject: Reject host. Arguments: host and reason (optional)
.PHONY: reject
reject:
2025-06-23 12:55:05 +03:00
docker compose -f docker-compose.yml exec -it peertube-instance-index-filter peertube-instance-index-filter -command reject -host $(host) -reject-reason $(reason)
2025-06-23 12:50:46 +03:00
2025-06-23 14:10:58 +03:00
### audit: Audit hosts. Arguments: filter, start (skip instances)
2025-06-23 12:50:46 +03:00
.PHONY: audit
audit:
2025-06-23 14:10:58 +03:00
docker compose -f docker-compose.yml exec -it peertube-instance-index-filter peertube-instance-index-filter -command audit -filter $(filter) -start $(start)
2025-06-23 12:50:46 +03:00