Sign inSign up

tweedge/s3-recycler

By tweedge

•Updated over 1 year ago

Not all S3 providers have automatic deletion, so this is an distroless, inefficient sidecar to do it

Image
Databases & storage
0

1.8K

tweedge/s3-recycler repository overview

⁠s3-recycler

DockerHub Link License Written By Author Also Writes On

Not all S3 providers have automatic deletion capabilities, so this is an inefficient little sidecar to list out and delete all files in an S3 bucket periodically. It's also a little playground I used to learn about building distroless images.

⁠Config

Required environment variables to set are:

  • S3_BUCKET - ex. mybucket, what the name of your bucket is
  • S3_REGION - ex. us-east-1, what region your bucket is in
  • S3_ENDPOINT_URL - ex. https://s3.us-east-1.amazonaws.com, your S3 provider's API
  • S3_ACCESS_KEY_ID - ex. AKIA..., your access key ID
  • S3_SECRET_KEY - ex. wJal..., your secret key
  • RECYCLER_SLEEP - ex. 3600, how long to sleep (in seconds) before deleting all known objects

Optional environment variables to set are:

  • RECYCLER_STARTUP_HOLD - ex. 60, how long to sleep (in seconds) when the container first starts

Tag summary

Content type

Image

Digest

sha256:61e71e65c…

Size

36.1 MB

Last updated

over 1 year ago

docker pull tweedge/s3-recycler