alpine fork, correct permissions, appears working now
This commit is contained in:
parent
7198394146
commit
bad8c43d3d
5 changed files with 18 additions and 3 deletions
|
@ -5,8 +5,7 @@ mkdir ./uploads ./static ./config -p
|
||||||
if [ ! -f ./script_config.sh ]; then
|
if [ ! -f ./script_config.sh ]; then
|
||||||
cp ./script_config_sample.sh ./script_config.sh
|
cp ./script_config_sample.sh ./script_config.sh
|
||||||
fi
|
fi
|
||||||
|
source ./script_config.sh
|
||||||
podman pod create \
|
podman pod create \
|
||||||
--name rebased-pod \
|
--name rebased-pod \
|
||||||
-p 5000:5000 \
|
-p $PORT:5000
|
||||||
-p 4000:4000
|
|
||||||
|
|
|
@ -6,6 +6,7 @@ touch ./config/prod.secret.exs
|
||||||
echo Stopping old 'rebased-web' container...
|
echo Stopping old 'rebased-web' container...
|
||||||
podman stop rebased-web
|
podman stop rebased-web
|
||||||
podman rm rebased-web
|
podman rm rebased-web
|
||||||
|
chmod -R 777 uploads
|
||||||
|
|
||||||
echo Creating new 'rebased-web' container...
|
echo Creating new 'rebased-web' container...
|
||||||
podman run -d \
|
podman run -d \
|
||||||
|
|
|
@ -66,4 +66,6 @@ RUN chmod +x ${HOME}/docker-entrypoint.sh
|
||||||
|
|
||||||
EXPOSE 5000
|
EXPOSE 5000
|
||||||
|
|
||||||
|
WORKDIR /var/lib/pleroma
|
||||||
|
|
||||||
ENTRYPOINT ["/opt/pleroma/docker-entrypoint.sh"]
|
ENTRYPOINT ["/opt/pleroma/docker-entrypoint.sh"]
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
DATE=$(date +"%Y-%m-%d")
|
DATE=$(date +"%Y-%m-%d")
|
||||||
|
PORT=5000
|
||||||
PG_USER=rebased
|
PG_USER=rebased
|
||||||
PG_PASS=rebased
|
PG_PASS=rebased
|
||||||
PG_HOST=localhost
|
PG_HOST=localhost
|
||||||
|
|
12
script_config_sample.sh
Normal file
12
script_config_sample.sh
Normal 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
|
Loading…
Reference in a new issue