19 lines
1.0 KiB
Bash
19 lines
1.0 KiB
Bash
# Pleroma 2.10: our own image (images/pleroma: the OTP release, pinned by checksum) on the shared Postgres. Akkoma's
|
|||
|
|
# parent, with its inbox guard (400 to Move, QuoteRequest and Bite), InlineQuotePolicy's "RT:" rewrite of quotes,
|
||
|
|
# chats, and outgoing Block on by default. Users are made with pleroma_ctl and sign in with the password grant.
|
||
|
|
PLEROMA_IMAGE=${PLEROMA_IMAGE:-localhost/pasture-pleroma:2.10.2}
|
||
|
|
. "$here/peers/shared.sh"
|
||
|
|
|
||
|
|
pleroma_up() {
|
||
|
|
shared_postgres_up
|
||
|
|
podman image exists "$PLEROMA_IMAGE" || podman build -q -t "$PLEROMA_IMAGE" "$here/images/pleroma" >/dev/null
|
||
|
|
pg_db pleroma citext pg_trgm uuid-ossp
|
||
|
|
mkdir -p "$here/.state/pleroma"
|
||
|
|
podman run -d --replace --name pasture-pleroma --network $net \
|
||
|
|
-v "$here/.state/pleroma:/etc/pleroma:z" -v "$ca:/pasture/ca:z,ro" "$PLEROMA_IMAGE" >/dev/null
|
||
|
|
for _ in $(seq 1 150); do
|
||
|
|
site pleroma.test -s -o /dev/null -w '%{http_code}' https://pleroma.test:6443/api/v1/instance 2>/dev/null | grep -q 200 && break
|
||
|
|
sleep 3
|
||
|
|
done
|
||
|
|
echo "pleroma: https://pleroma.test:6443"
|
||
|
|
}
|