- '/data/toolbox/protected/fluidbookpublication/pdf/:/application/protected/fluidbookpublication/pdf/'
# Config
- '/home/toolbox/www/.docker/config/httpd/httpd.conf:/usr/local/apache2/conf/httpd.conf'
+ # External volume
+ - 'sshfsusstorage:/application/usstorage:ro'
ports:
- '37126:80'
environment:
fluidbook-processfarm:
external:
name: fluidbook-processfarm
+
+volumes:
+ sshfsusstorage:
+ driver: ucphhpc/sshfs:latest
+ driver_opts:
+ sshcmd: "fluidbook@kingkong.cubedesigners.com:/home/fluidbook/data"
+ allow_other: ""
+ password: "Qu2E9uq48bBzsqGiZA"
#!/bin/sh
cd /docker/fluidbook-toolbox
+docker plugin install ucphhpc/sshfs --grant-all-permissions
/home/toolbox/www/scripts/fixrights.sh
chown root:root /home/toolbox/www/.docker/config/cron/host;ln -sf /home/toolbox/www/.docker/config/cron/host /etc/cron.d/toolbox
docker network create fluidbook-toolbox
docker compose down
-docker compose up -d
+docker volume rm fluidbook-toolbox_sshfsusstorage
+docker compose up -d
/home/toolbox/www/scripts/fixrights.sh
docker exec -it fluidbook-toolbox /application/scripts/update.sh
find /home/toolbox/www/ -type d \( -path /home/toolbox/www/.docker \) -prune -o -exec chown -R toolbox:www-data {} \;
if (!isset($regions[$r])) {
$regions[$r] = [];
}
- $regions[$r] += $fluidbook->getDocumentsId();
-
+ $regions[$r] = array_merge($regions[$r], $fluidbook->getDocumentsId());
}
DB::table('fluidbook_document')->update(['region' => $default]);
} catch (\Exception $e) {
dd($e);
}
-
}
Artisan::call('fluidbook:document:setregion');