Skip to content

Commit

Permalink
s3cmd
Browse files Browse the repository at this point in the history
Signed-off-by: Jessica Frazelle <[email protected]>
  • Loading branch information
jessfraz committed Sep 10, 2015
1 parent e9a4c86 commit 19a1b1c
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions s3cmd/Dockerfile
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>

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" ]

0 comments on commit 19a1b1c

Please sign in to comment.