Commit 49985223 authored by ci's avatar ci
Browse files

fix more potential bugs

parent 8167943d
Pipeline #389 failed with stage
in 1 minute and 2 seconds
......@@ -17,7 +17,7 @@ job:
before_script:
- apt update -q && apt install -qqy --no-install-recommends locales-all sudo youtube-dl ffmpeg tree curl
- apt install -qqy --no-install-recommends py-pip python-dev libffi-dev openssl-dev gcc libc-dev make
- apt install -qqy --no-install-recommends python-pip python-dev libffi-dev libssl-dev gcc libc-dev make
- curl -fsSL https://get.docker.com -o get-docker.sh
- sudo sh get-docker.sh
- sudo usermod -aG docker $USER
......
......@@ -27,6 +27,9 @@ 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"
#ensure that docker can be run and managed from the user
sudo usermod -aG docker "$USER"
cd ./e2e
docker-compose stop
docker-compose rm -f
......@@ -37,7 +40,6 @@ mkdir persist
mkdir -p blobsfiles
mkdir persist/.lbrynet
ls -lha ./persist
chown "$USER": -R ./persist
chmod u+rwx ./persist/.lbrynet
docker-compose up -d
printf 'waiting for internal apis'
......@@ -47,6 +49,9 @@ 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
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