]> _ Git - fluidbook-toolbox.git/commitdiff
wip #6549 @0.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 15 Dec 2023 08:14:09 +0000 (09:14 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 15 Dec 2023 08:14:09 +0000 (09:14 +0100)
.docker/alpha/docker-compose.yml
.docker/dev/docker-compose.yml
.docker/docker-compose.yml
.docker/update.sh
bin/startup.sh

index f657369fe6007c98f043298c71348b4e13195c06..ca97e75152e35105ee268d884de7de2a8dcb516f 100644 (file)
@@ -18,7 +18,6 @@ services:
       - '/home/extranet/share/:/application/share/'
       - '/data/toolbox/alpha/storage/:/application/storage/'
       - '/data/extranet/ftp/:/application/ftp/'
-      - '/mnt/sshfs/godzilla/data/fluidbook/docs/:/application/protected/fluidbookpublication/docs/'
       - '/data/extranet/www/fluidbook/books/working/:/application/protected/fluidbookpublication/working/'
       - '/data/extranet/www/fluidbook/books/links/:/application/protected/fluidbookpublication/links/'
       - '/home/extranet/www/fluidbook/cache/unzip/:/application/storage/fluidbook/cache/unzip/'
@@ -87,7 +86,6 @@ services:
       - '/home/extranet/share/:/application/share/'
       - '/data/toolbox/alpha/storage/:/application/storage/'
       - '/data/extranet/ftp/:/application/ftp/'
-      - '/mnt/sshfs/godzilla/data/fluidbook/docs/:/application/protected/fluidbookpublication/docs/'
       - '/data/extranet/www/fluidbook/books/working/:/application/protected/fluidbookpublication/working/'
       - '/data/extranet/www/fluidbook/books/links/:/application/protected/fluidbookpublication/links/'
       - '/home/extranet/www/fluidbook/cache/unzip/:/application/storage/fluidbook/cache/unzip/'
@@ -97,6 +95,7 @@ services:
       - '/data/toolbox/alpha/.docker/config/httpd/httpd-alpha.conf:/usr/local/apache2/conf/httpd.conf'
       # External volume
       - 'sshfsusstorage:/application/usstorage:ro'
+      - 'docs:/application/protected/fluidbookpublication/docs:ro'
     environment:
       VIRTUAL_HOST: alpha.toolbox.fluidbook.com
       LETSENCRYPT_HOST: alpha.toolbox.fluidbook.com
@@ -174,3 +173,10 @@ volumes:
       sshcmd: "fluidbook@kingkong.cubedesigners.com:/home/fluidbook/data"
       allow_other: ""
       password: "Qu2E9uq48bBzsqGiZA"
+
+  docs:
+    driver: ucphhpc/sshfs:latest
+    driver_opts:
+      sshcmd: "fluidbook@dracula.cubedesigners.com:/data/fluidbook/docs"
+      allow_other: ""
+      password: "Qu2E9uq48bBzsqGiZA"
index 3249002077a7d43f83aa196cae70038698d07e44..f2fc02e5ec198dbc3838c0b3084648bfb20a5482 100644 (file)
@@ -18,7 +18,6 @@ services:
       - '/home/extranet/share/:/application/share/'
       - '/data/toolbox/dev/storage/:/application/storage/'
       - '/data/extranet/ftp/:/application/ftp/'
-      - '/mnt/sshfs/godzilla/data/fluidbook/docs/:/application/protected/fluidbookpublication/docs/'
       - '/data/extranet/www/fluidbook/books/working/:/application/protected/fluidbookpublication/working/'
       - '/data/extranet/www/fluidbook/books/links/:/application/protected/fluidbookpublication/links/'
       - '/home/extranet/www/fluidbook/cache/unzip/:/application/storage/fluidbook/cache/unzip/'
@@ -87,7 +86,6 @@ services:
       - '/home/extranet/share/:/application/share/'
       - '/data/toolbox/dev/storage/:/application/storage/'
       - '/data/extranet/ftp/:/application/ftp/'
-      - '/mnt/sshfs/godzilla/data/fluidbook/docs/:/application/protected/fluidbookpublication/docs/'
       - '/data/extranet/www/fluidbook/books/working/:/application/protected/fluidbookpublication/working/'
       - '/data/extranet/www/fluidbook/books/links/:/application/protected/fluidbookpublication/links/'
       - '/home/extranet/www/fluidbook/cache/unzip/:/application/storage/fluidbook/cache/unzip/'
@@ -97,6 +95,7 @@ services:
       - '/home/toolbox/dev/.docker/config/httpd/httpd-dev.conf:/usr/local/apache2/conf/httpd.conf'
       # External volume
       - 'sshfsusstorage:/application/usstorage:ro'
+      - 'docs:/application/protected/fluidbookpublication/docs:ro'
     ports:
       - '37127:80'
     environment:
@@ -180,3 +179,10 @@ volumes:
       sshcmd: "fluidbook@kingkong.cubedesigners.com:/home/fluidbook/data"
       allow_other: ""
       password: "Qu2E9uq48bBzsqGiZA"
+
+  docs:
+    driver: ucphhpc/sshfs:latest
+    driver_opts:
+      sshcmd: "fluidbook@dracula.cubedesigners.com:/data/fluidbook/docs"
+      allow_other: ""
+      password: "Qu2E9uq48bBzsqGiZA"
index 4b5626753ba475f2f383a6702ded63ecb65296a7..3eceb68837809650bf339cbbf120983f5695fafd 100644 (file)
@@ -18,7 +18,6 @@ services:
       - '/home/extranet/share/:/application/share/'
       - '/data/toolbox/storage/:/application/storage/'
       - '/data/extranet/ftp/:/application/ftp/'
-      - '/mnt/sshfs/godzilla/data/fluidbook/docs/:/application/protected/fluidbookpublication/docs/'
       - '/data/extranet/www/fluidbook/books/working/:/application/protected/fluidbookpublication/working/'
       - '/data/extranet/www/fluidbook/books/links/:/application/protected/fluidbookpublication/links/'
       - '/home/extranet/www/fluidbook/cache/unzip/:/application/storage/fluidbook/cache/unzip/'
@@ -88,7 +87,6 @@ services:
       - '/home/extranet/share/:/application/share/'
       - '/data/toolbox/storage/:/application/storage/'
       - '/data/extranet/ftp/:/application/ftp/'
-      - '/mnt/sshfs/godzilla/data/fluidbook/docs/:/application/protected/fluidbookpublication/docs/'
       - '/data/extranet/www/fluidbook/books/working/:/application/protected/fluidbookpublication/working/'
       - '/data/extranet/www/fluidbook/books/links/:/application/protected/fluidbookpublication/links/'
       - '/home/extranet/www/fluidbook/cache/unzip/:/application/storage/fluidbook/cache/unzip/'
@@ -98,6 +96,7 @@ services:
       - '/home/toolbox/www/.docker/config/httpd/httpd.conf:/usr/local/apache2/conf/httpd.conf'
       # External volume
       - 'sshfsusstorage:/application/usstorage:ro'
+      - 'docs:/application/protected/fluidbookpublication/docs:ro'
     ports:
       - '37126:80'
     environment:
@@ -181,3 +180,10 @@ volumes:
       sshcmd: "fluidbook@kingkong.cubedesigners.com:/home/fluidbook/data"
       allow_other: ""
       password: "Qu2E9uq48bBzsqGiZA"
+
+  docs:
+    driver: ucphhpc/sshfs:latest
+    driver_opts:
+      sshcmd: "fluidbook@dracula.cubedesigners.com:/data/fluidbook/docs"
+      allow_other: ""
+      password: "Qu2E9uq48bBzsqGiZA"
index 555f7facc2a8db85a35a6fbc775df325536f4f9e..87d084c368ab4aa4ea3a5de9a910a8e9a71d1d8e 100644 (file)
@@ -6,6 +6,7 @@ chown root:root /home/toolbox/www/.docker/config/cron/host;ln -sf /home/toolbox/
 docker network create fluidbook-toolbox
 docker compose down
 docker volume rm fluidbook-toolbox_sshfsusstorage
+docker volume rm fluidbook-toolbox_docs
 docker compose up -d
 /home/toolbox/www/scripts/fixrights.sh
 docker exec -it fluidbook-toolbox /application/scripts/update.sh
index c2f062f0790211ec2411cf0b8d309d3a00b28b84..68f9102150fcb84f10c5318135300d3f61eb84de 100644 (file)
@@ -65,8 +65,8 @@ mkdir -p /application/protected/fluidbookpublication/docs
 if mountpoint -q "/application/protected/fluidbookpublication/docs"; then
     :
 else
-    sshfs -o reconnect,ServerAliveInterval=15,ServerAliveCountMax=3 -o cache=no -o sshfs_sync -o uid=1002 -o gid=33 -o allow_other root@godzilla.cubedesigners.com:/data/fluidbook/docs /application/protected/fluidbookpublication/docs
-    #sshfs -o reconnect,ServerAliveInterval=15,ServerAliveCountMax=3 -o cache=no -o sshfs_sync -o uid=1002 -o gid=33 -o allow_other root@dracula.cubedesigners.com:/data/fluidbook/docs /application/protected/fluidbookpublication/docs
+    #sshfs -o reconnect,ServerAliveInterval=15,ServerAliveCountMax=3 -o cache=no -o sshfs_sync -o uid=1002 -o gid=33 -o allow_other root@godzilla.cubedesigners.com:/data/fluidbook/docs /application/protected/fluidbookpublication/docs
+    sshfs -o reconnect,ServerAliveInterval=15,ServerAliveCountMax=3 -o cache=no -o sshfs_sync -o uid=1002 -o gid=33 -o allow_other root@dracula.cubedesigners.com:/data/fluidbook/docs /application/protected/fluidbookpublication/docs
 fi
 
 # Launch PHP