1
0
Fork 0
mirror of synced 2024-05-17 11:12:41 +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
RUN chmod +x /usr/local/bin/doctor && \
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/install && \
chmod +x /usr/local/bin/migrate && \

View file

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

View file

@ -2,14 +2,13 @@
global $cli;
use Utopia\App;
use Utopia\CLI\Console;
use Utopia\Database\DateTime;
use Utopia\Validator\Integer;
use Utopia\Validator\Text;
$cli
->task('rsync')
->task('volume-sync')
->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('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_AUDIT
appwrite-rsync:
entrypoint: certificate-sync
appwrite-volume-sync:
entrypoint: volume-sync
<<: *x-logging
container_name: appwrite-rsync
build:
context: .
container_name: appwrite-volume-sync
image: appwrite-dev
restart: unless-stopped
command:
- --source=/data/src/ --destination=/data/dest/ --interval=10