Unverified Commit e92baa42 authored by Mark Beamer Jr's avatar Mark Beamer Jr
Browse files

fix all the things

parent a4e90a66
......@@ -7,7 +7,6 @@ services:
## Lbrycrd ##
#############
lbrycrd:
user: $UID
image: lbry/lbrycrd:v0.12.4.1
networks:
- e2e
......@@ -55,7 +54,6 @@ services:
## Lbrynet ##
#############
lbrynet:
user: $UID
image: lbry/lbrynet:v0.38.5
networks:
- e2e
......
......@@ -28,21 +28,16 @@ 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)
sudo usermod -aG docker "$USER"
cd ./e2e
docker-compose stop
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
chmod 777 persist
mkdir -p blobsfiles
mkdir 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
......@@ -51,10 +46,6 @@ until curl --output /dev/null --silent --head --fail http://localhost:15400; do
done
echo "successfully started..."
# make sure we have permission to mess with the volumes
sudo find ./persist -type d -exec chmod 777 {} \;
sudo chown "$USER": -R ./persist
#Data Setup for test
#Add a ytsync user
ADDYTSYNCUSER='INSERT INTO user (given_name) VALUE("ytsync user")'
......
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