Commit a4e90a66 authored by ci's avatar ci
Browse files

run services with the right user permissions

parent be41f7cc
Pipeline #394 failed with stage
in 2 minutes and 49 seconds
......@@ -7,6 +7,7 @@ services:
## Lbrycrd ##
#############
lbrycrd:
user: $UID
image: lbry/lbrycrd:v0.12.4.1
networks:
- e2e
......@@ -54,6 +55,7 @@ services:
## Lbrynet ##
#############
lbrynet:
user: $UID
image: lbry/lbrynet:v0.38.5
networks:
- e2e
......
......@@ -26,6 +26,7 @@ export BLOBS_DIRECTORY="$(pwd)/e2e/blobsfiles"
export LBRYNET_DIR="$(pwd)/e2e/persist/.lbrynet/.local/share/lbry/lbrynet/"
export LBRYNET_WALLETS_DIR="$(pwd)/e2e/persist/.lbrynet/.local/share/lbry/lbryum"
export TMP_DIR="/var/tmp"
export UID
#ensure that docker can be run and managed from the user
USER=$(whoami)
......@@ -37,11 +38,11 @@ docker-compose rm -f
echo "$DOCKER_PASSWORD" | docker login --username "$DOCKER_USERNAME" --password-stdin
docker-compose pull
if [[ -d persist ]]; then rm -rf persist; fi
rm -rf persist
mkdir persist
mkdir -p blobsfiles
mkdir persist/.lbrynet
ls -lha ./persist
chmod u+rwx ./persist/.lbrynet
sudo chown 777 -R ./persist
docker-compose up -d
printf 'waiting for internal apis'
until curl --output /dev/null --silent --head --fail http://localhost:15400; do
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment