]> Untitled Git - lemmy.git/commitdiff
Fixing some scripts for the federation-test
authorDessalines <tyhou13@gmx.com>
Sat, 27 Jun 2020 18:54:42 +0000 (14:54 -0400)
committerDessalines <tyhou13@gmx.com>
Sat, 27 Jun 2020 18:54:42 +0000 (14:54 -0400)
docker/federation-test/run-tests.sh
docker/federation/docker-compose.yml

index b2d319dddf0feb994c7b7898a597a6a374cb69a3..fdb0e129bea19aedc7548813e2c6219a2f6d49e1 100755 (executable)
@@ -7,6 +7,11 @@ popd
 
 sudo docker build ../../ --file ../federation/Dockerfile --tag lemmy-federation:latest
 
+for Item in alpha beta gamma ; do
+  sudo mkdir -p volumes/pictrs_$Item
+  sudo chown -R 991:991 volumes/pictrs_$Item
+done
+
 sudo docker-compose --file ../federation/docker-compose.yml --project-directory . up -d
 
 pushd ../../ui
index 900f7c9cade755c93f425d8a6259d555ceaf814b..d5f9a5225320e28468d5cd5f57c32b0531cfa247 100644 (file)
@@ -10,6 +10,7 @@ services:
     volumes:
       # Hack to make this work from both docker/federation/ and docker/federation-test/
       - ../federation/nginx.conf:/etc/nginx/nginx.conf
+    restart: on-failure
     depends_on:
       - lemmy_alpha
       - pictrs_alpha