2022-07-18 13:44:55 -05:00
|
|
|
SHELL := /bin/bash
|
|
|
|
PWD=$(shell pwd)
|
|
|
|
|
2022-07-28 13:38:54 -05:00
|
|
|
.PHONY: build
|
|
|
|
build:
|
|
|
|
docker build -t microblogpub/microblogpub .
|
|
|
|
|
2022-07-18 13:44:55 -05: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 13:28:13 -05:00
|
|
|
-docker run --env MICROBLOGPUB_CONFIG_FILE=tests.toml --rm -it --volume `pwd`/data:/app/data --volume `pwd`/app/static:/app/app/static microblogpub/microblogpub inv configuration-wizard
|
|
|
|
|
|
|
|
.PHONY: update
|
|
|
|
update:
|
|
|
|
-docker run --volume `pwd`/data:/app/data --volume `pwd`/app/static:/app/app/static microblogpub/microblogpub inv update
|
2022-08-19 07:58:59 -05:00
|
|
|
|
|
|
|
.PHONY: prune-old-data
|
|
|
|
update:
|
|
|
|
-docker run --volume `pwd`/data:/app/data --volume `pwd`/app/static:/app/app/static microblogpub/microblogpub inv prune-old-data
|