The app resizes given images and saves them to remote cloud storage.
##Installation
- Install RabbitMQ (reference)
- copy
./config/config.ini.dist
to./config/config.ini
- edit
./config/config.ini
with actual settings - be sure
tmpDir
,outputDir
and config are writeable for a user, which is launching the app - install composer (reference)
- run
composer.phar install
- create Dropbox application
- copy
dropbox-client-secret.json.dist
todropbox-client-secret.json
- make ./bot executable
##Usage command [arguments]
##Available commands
- schedule Add filenames to resize queue
- resize Resize next images from the queue
- status Output current status in format %queue%:%number_of_images%
- upload Upload next images to remote storage
- retry Re-upload failed images from queue
#Docker
There is a docker image which allow deploy and test the project without actual environment setup
##Usage
Run command sudo docker build -t "uploader_bot" ./config
to build the image
The following command allows to run the container sudo docker run --name test_instance -i -t uploader_bot
with name test_instance
To run the application execute ./bot