This commit is contained in:
Your Name 2021-11-02 13:10:43 -06:00
parent d17d30bc9e
commit 3727cfaca4
2 changed files with 28 additions and 0 deletions

16
get_pleroma.sh Normal file
View File

@ -0,0 +1,16 @@
#!/bin/bash
clear
export arch="$(uname -m)";if [ "$arch" = "x86_64" ];then arch="amd64";elif [ "$arch" = "armv7l" ];then arch="arm";elif [ "$arch" = "aarch64" ];then arch="arm64";else echo "Unsupported arch: $arch">&2;fi;if getconf GNU_LIBC_VERSION>/dev/null;then libc_postfix="";elif [ "$(ldd 2>&1|head -c 9)" = "musl libc" ];then libc_postfix="-musl";elif [ "$(find /lib/libc.musl*|wc -l)" ];then libc_postfix="-musl";else echo "Unsupported libc">&2;fi;echo "$arch$libc_postfix"
echo;echo "CPU ARchitecure....."$arch;echo
echo;echo "Downloading Latest Pleroma....";echo
curl 'https://git.pleroma.social/api/v4/projects/2/jobs/artifacts/stable/download?job=$arch' -o pleroma/pleroma.zip
echo;echo "Downloading Latest Soapbox Build.....";echo
wget https://gitlab.com/`curl https://gitlab.com/soapbox-pub/soapbox-fe/-/jobs | grep 'build-production' | cut -d "\"" -f4 | head -1`/artifacts/download -O pleroma/soapbox-fe.zip
echo;echo "Now you can build Pleroma with docker-compose build";echo

12
new-instance.sh Normal file
View File

@ -0,0 +1,12 @@
#!/bin/bash
clear
echo;echo "Creating a new Pleroma Instance....."
git checkout HEAD config/config.exs
docker-compose kill
docker-compose rm -f
docker network rm pleroma_pleroma
docker volume rm pleroma_postgresql
docker-compose build
docker-compose up -d
docker-compose logs -f