A Lightweight container with s3cmd
This container was designed to be used with wercker as a deployment pipeline container, but it certainly could be used for any s3cmd needs.
This container is derived from Alpine Linux and has added the bash
shell. If you would rather save the ~0.69MB you can use s3cmd:sh, however because wercker uses /bin/bash for their setup steps, you must override the box cmd as shown in the sample wercker.yml below.
deploy: box: raizyr/s3cmd steps: - raizyr/s3sync: source_dir: public/ delete-removed: true bucket-url: $AWS_BUCKET_URL key-id: $AWS_ACCESS_KEY_ID key-secret: $AWS_SECRET_ACCESS_KEY
deploy: box: id: raizyr/s3cmd cmd: /bin/sh steps: - raizyr/s3sync: source_dir: public/ delete-removed: true bucket-url: $AWS_BUCKET_URL key-id: $AWS_ACCESS_KEY_ID key-secret: $AWS_SECRET_ACCESS_KEY