Sign inSign up

wikiwi/s3-bucket-creator

By wikiwi

Updated over 8 years ago

s3-bucket-creator creates a bucket in a S3-compatible backend if it doesn't exist using mc.

Image
0

7.1K

wikiwi/s3-bucket-creator repository overview

s3-bucket-creator

s3-bucket-creator creates a bucket in a S3-compatible backend if it doesn't exist using mc. This is designed to be used as a sidekick container.

Build Status Widget Code Climate Widget MicroBadger Image Widget

Environment Variables

NameDefaultDescription
S3_ENDPOINThttps://s3.amazonaws.comThe endpoint address to your S3-compatible backend
S3_ACCESS_KEY-The access key to authenticate to the endpoint
S3_SECRET_KEY-The secret key to authenticate to the endpoint
S3_VERSIONS3v4S3 protocol version can be either S3v2 or S3v4
S3_BUCKET_NAME-The name of the bucket to create
INITIAL_DELAY0Initial delay in seconds before connecting to the endpoint
INFINITE_SLEEPfalseTell script to block infinitely until terminated

Example

docker run -e S3_BUCKET_NAME=my-bucket \
           -e S3_ENDPOINT=https://s3.amazonaws.com \
           -e S3_ACCESS_KEY=ESGAWFEXAMPLE \
           -e S3_SECRET_KEY=efisj3ADawd+wawKEYEXAMPLE \
           wikiwi/s3-bucket-creator

Docker Hub

Automated build is available at the Docker Hub.

Tag summary

Content type

Image

Digest

Size

13.6 MB

Last updated

over 8 years ago

docker pull wikiwi/s3-bucket-creator