Skip to content

pharmbio/s3uploader

Repository files navigation

s3uploader

  • Service that uploads images to S3
  • Files
    • s3_image_uploader.py: contains the main S3ImageUploader class
    • main_uploader.py: creates an S3ImageUploader instance and calls its run method
  • S3ImageUploader.run():
    • Polls the database every 30 seconds for new entries in the upload_to_s3 table
    • If there are new images:
      • Creates an S3 boto client (wrapped in s3_client_wrapper to ensure a fresh S3 token)
      • Uploads the file/image to S3
      • Removes the file/image from the database
  • Deployment
    • Dockerfile and docker-compose.yml for running the service with Docker Compose

About

service that uploads images to s3

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages