peertube-instance-index-filter/docker/Makefile
2025-06-23 14:13:08 +03:00

21 lines
1,004 B
Makefile

### 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:
docker compose -f docker-compose.yml exec -it peertube-instance-index-filter peertube-instance-index-filter -command index -url $(url) -instance-url $(instance-url)
### reject: Reject host. Arguments: host and reason (optional)
.PHONY: reject
reject:
docker compose -f docker-compose.yml exec -it peertube-instance-index-filter peertube-instance-index-filter -command reject -host $(host) -reject-reason $(reason)
### audit: Audit hosts. Arguments: filter, start (skip instances)
.PHONY: audit
audit:
docker compose -f docker-compose.yml exec -it peertube-instance-index-filter peertube-instance-index-filter -command audit -filter $(filter) -start $(start)