1
0
Fork 0
mirror of synced 2024-06-14 08:44:49 +12:00

feat: rename rsync to volume-sync worker

This commit is contained in:
Christy Jacob 2022-11-02 20:38:13 +05:30
parent d162c6b0b2
commit 0aac303d51
6 changed files with 10 additions and 12 deletions

View file

@ -333,7 +333,7 @@ RUN mkdir -p /storage/uploads && \
# Executables # Executables
RUN chmod +x /usr/local/bin/doctor && \ RUN chmod +x /usr/local/bin/doctor && \
chmod +x /usr/local/bin/maintenance && \ chmod +x /usr/local/bin/maintenance && \
chmod +x /usr/local/bin/certificate-sync && \ chmod +x /usr/local/bin/volume-sync && \
chmod +x /usr/local/bin/usage && \ chmod +x /usr/local/bin/usage && \
chmod +x /usr/local/bin/install && \ chmod +x /usr/local/bin/install && \
chmod +x /usr/local/bin/migrate && \ chmod +x /usr/local/bin/migrate && \

View file

@ -14,7 +14,7 @@ $cli = new CLI();
include 'tasks/doctor.php'; include 'tasks/doctor.php';
include 'tasks/maintenance.php'; include 'tasks/maintenance.php';
include 'tasks/rsync.php'; include 'tasks/volume-sync.php';
include 'tasks/install.php'; include 'tasks/install.php';
include 'tasks/migrate.php'; include 'tasks/migrate.php';
include 'tasks/sdks.php'; include 'tasks/sdks.php';

View file

@ -2,14 +2,13 @@
global $cli; global $cli;
use Utopia\App;
use Utopia\CLI\Console; use Utopia\CLI\Console;
use Utopia\Database\DateTime; use Utopia\Database\DateTime;
use Utopia\Validator\Integer; use Utopia\Validator\Integer;
use Utopia\Validator\Text; use Utopia\Validator\Text;
$cli $cli
->task('rsync') ->task('volume-sync')
->desc('Runs rsync to sync certificates between the storage mount and traefik.') ->desc('Runs rsync to sync certificates between the storage mount and traefik.')
->param('source', null, new Text(255), 'Source path to sync from.', false) ->param('source', null, new Text(255), 'Source path to sync from.', false)
->param('destination', null, new Text(255), 'Destination path to sync to.', false) ->param('destination', null, new Text(255), 'Destination path to sync to.', false)

View file

@ -1,3 +0,0 @@
#!/bin/sh
php /usr/src/code/app/cli.php rsync $@

3
bin/volume-sync Normal file
View file

@ -0,0 +1,3 @@
#!/bin/sh
php /usr/src/code/app/cli.php volume-sync $@

View file

@ -603,12 +603,11 @@ services:
- _APP_MAINTENANCE_RETENTION_ABUSE - _APP_MAINTENANCE_RETENTION_ABUSE
- _APP_MAINTENANCE_RETENTION_AUDIT - _APP_MAINTENANCE_RETENTION_AUDIT
appwrite-rsync: appwrite-volume-sync:
entrypoint: certificate-sync entrypoint: volume-sync
<<: *x-logging <<: *x-logging
container_name: appwrite-rsync container_name: appwrite-volume-sync
build: image: appwrite-dev
context: .
restart: unless-stopped restart: unless-stopped
command: command:
- --source=/data/src/ --destination=/data/dest/ --interval=10 - --source=/data/src/ --destination=/data/dest/ --interval=10