From 19a1b1c9179fe3d526aeee5e3f39591d9d7d0d3c Mon Sep 17 00:00:00 2001 From: Jessica Frazelle Date: Thu, 10 Sep 2015 12:02:08 -0700 Subject: [PATCH] s3cmd Signed-off-by: Jessica Frazelle --- s3cmd/Dockerfile | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 s3cmd/Dockerfile diff --git a/s3cmd/Dockerfile b/s3cmd/Dockerfile new file mode 100644 index 0000000..0d85265 --- /dev/null +++ b/s3cmd/Dockerfile @@ -0,0 +1,28 @@ +# s3cmd in a container +# +# docker run --rm -it \ +# -e AWS_ACCESS_KEY \ +# -e AWS_SECRET_KEY \ +# -v $(pwd):/root/s3cmd-workspace +# --name s3cmd \ +# jess/s3cmd +# +FROM debian:sid +MAINTAINER Jessica Frazelle + +RUN apt-get update && apt-get install -y \ + s3cmd \ + --no-install-recommends \ + && rm -rf /var/lib/apt/lists/* + +# Setup s3cmd config +RUN { \ + echo '[default]'; \ + echo 'access_key=$AWS_ACCESS_KEY'; \ + echo 'secret_key=$AWS_SECRET_KEY'; \ + } > ~/.s3cfg + +ENV HOME /root +WORKDIR $HOME/s3cmd-workspace + +ENTRYPOINT [ "s3cmd" ]