- Service that uploads images to S3
- Files
s3_image_uploader.py: contains the mainS3ImageUploaderclassmain_uploader.py: creates anS3ImageUploaderinstance and calls itsrunmethod
S3ImageUploader.run():- Polls the database every 30 seconds for new entries in the
upload_to_s3table - If there are new images:
- Creates an S3 boto client (wrapped in
s3_client_wrapperto ensure a fresh S3 token) - Uploads the file/image to S3
- Removes the file/image from the database
- Creates an S3 boto client (wrapped in
- Polls the database every 30 seconds for new entries in the
- Deployment
Dockerfileanddocker-compose.ymlfor running the service with Docker Compose
pharmbio/s3uploader
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|