alpine fork, correct permissions, appears working now

This commit is contained in:
Paul Wilde 2022-11-14 14:51:45 +00:00
parent 7198394146
commit bad8c43d3d
5 changed files with 18 additions and 3 deletions

View file

@ -5,8 +5,7 @@ mkdir ./uploads ./static ./config -p
if [ ! -f ./script_config.sh ]; then
cp ./script_config_sample.sh ./script_config.sh
fi
source ./script_config.sh
podman pod create \
--name rebased-pod \
-p 5000:5000 \
-p 4000:4000
-p $PORT:5000

View file

@ -6,6 +6,7 @@ touch ./config/prod.secret.exs
echo Stopping old 'rebased-web' container...
podman stop rebased-web
podman rm rebased-web
chmod -R 777 uploads
echo Creating new 'rebased-web' container...
podman run -d \

View file

@ -66,4 +66,6 @@ RUN chmod +x ${HOME}/docker-entrypoint.sh
EXPOSE 5000
WORKDIR /var/lib/pleroma
ENTRYPOINT ["/opt/pleroma/docker-entrypoint.sh"]

View file

@ -1,6 +1,7 @@
#!/bin/bash
DATE=$(date +"%Y-%m-%d")
PORT=5000
PG_USER=rebased
PG_PASS=rebased
PG_HOST=localhost

12
script_config_sample.sh Normal file
View file

@ -0,0 +1,12 @@
#!/bin/bash
DATE=$(date +"%Y-%m-%d")
PORT=5000
PG_USER=rebased
PG_PASS=rebased
PG_HOST=localhost
PG_NAME=rebased
REBASED_VER=develop
REBASED_IMG="rebased-$REBASED_VER-$DATE"
echo $REBASED_IMG