microblog/Makefile

48 lines
1.8 KiB
Makefile
Raw Normal View History

2022-07-18 18:44:55 +00:00
SHELL := /bin/bash
PWD=$(shell pwd)
2022-07-28 18:38:54 +00:00
.PHONY: build
build:
docker build -t microblogpub/microblogpub .
2022-07-18 18:44:55 +00:00
.PHONY: config
config:
# Run and remove instantly
-docker run --rm -it --volume `pwd`/data:/app/data microblogpub/microblogpub inv configuration-wizard
2022-07-28 18:28:13 +00:00
.PHONY: update
update:
2022-10-23 14:40:56 +00:00
-docker run --rm --volume `pwd`/data:/app/data --volume `pwd`/app/static:/app/app/static microblogpub/microblogpub inv update --no-update-deps
2022-08-19 12:58:59 +00:00
.PHONY: prune-old-data
2022-08-19 13:02:57 +00:00
prune-old-data:
2022-10-23 14:40:56 +00:00
-docker run --rm --volume `pwd`/data:/app/data --volume `pwd`/app/static:/app/app/static microblogpub/microblogpub inv prune-old-data
.PHONY: webfinger
webfinger:
2022-10-23 14:40:56 +00:00
-docker run --rm --volume `pwd`/data:/app/data --volume `pwd`/app/static:/app/app/static microblogpub/microblogpub inv webfinger $(account)
2022-09-08 18:57:52 +00:00
.PHONY: move-to
move-to:
2022-10-23 14:40:56 +00:00
-docker run --rm --volume `pwd`/data:/app/data --volume `pwd`/app/static:/app/app/static microblogpub/microblogpub inv move-to $(account)
2022-09-11 08:51:08 +00:00
.PHONY: self-destruct
2022-09-18 18:54:25 +00:00
self-destruct:
-docker run --rm --it --volume `pwd`/data:/app/data --volume `pwd`/app/static:/app/app/static microblogpub/microblogpub inv self-destruct
2022-09-16 15:38:19 +00:00
.PHONY: reset-password
reset-password:
2022-10-23 14:40:56 +00:00
-docker run --rm -it --volume `pwd`/data:/app/data --volume `pwd`/app/static:/app/app/static microblogpub/microblogpub inv reset-password
2022-09-16 15:38:19 +00:00
.PHONY: check-config
check-config:
2022-10-23 14:40:56 +00:00
-docker run --rm --volume `pwd`/data:/app/data --volume `pwd`/app/static:/app/app/static microblogpub/microblogpub inv check-config
2022-09-16 15:38:19 +00:00
.PHONY: compile-scss
compile-scss:
2022-10-23 14:40:56 +00:00
-docker run --rm --volume `pwd`/data:/app/data --volume `pwd`/app/static:/app/app/static microblogpub/microblogpub inv compile-scss
2022-12-06 19:26:15 +00:00
.PHONY: import-mastodon-following-accounts
import-mastodon-following-accounts:
-docker run --rm --volume `pwd`/data:/app/data --volume `pwd`/app/static:/app/app/static microblogpub/microblogpub inv import-mastodon-following-accounts $(path)