Sign inSign up

philcryer/min-jessie-awscli

By philcryer

•Updated almost 11 years ago

A minimal Alpine Linux build with awscli (size: 59.32 MB)

Image
1

324

philcryer/min-jessie-awscli repository overview

⁠Overview

A minimal (see Rant below) Docker image based on Alipine Linux⁠, (thanks to cgswong⁠ for the instruction!) image with awscli⁠ installed via pip.

⁠Usage

You need to have your AWS keys setup, see Getting Set Up with the AWS⁠ if you don't, then run aws --configure on the host you're running this Docker image on, or simply copy them (securely) in place (~/.aws) from another host.

To run, simply use docker run --rm -t -i -v ~/.aws:/root/.aws philcryer/min-jessie-awscli and tack on the aws commands at the end. For example:

docker run --rm -t -i -v ~/.aws:/root/.aws philcryer/min-jessie-awscli s3 ls

If you get results without errors, you're gtg, run it again with aws <command> help for usage on other commands. If you get an error, make sure the ~/.aws directory is setup correctly, which you test by running aws commands outside of Docker.

⁠Dockerfile

I need to have this in github so I can setup automated builds, but until then, in the interest of transparency, here ya go:

FROM gliderlabs/alpine:3.1
MAINTAINER Phil Cryer <[email protected]>

RUN apk-install python py-pip \
    && pip install --upgrade awscli \
    && apk del py-pip \
    && apk del py-setuptools \
    && rm -rf /var/cache/apk/* \
    && rm -rf /tmp/*

VOLUME ${HOME}/.aws

#ENTRYPOINT ["aws"]

⁠Rant

Once again, I look for a Docker image to use, and find ones that are so bloated it's comical. For example, yaronr/awscli⁠ has been downloaded 16,265 times and it's 216.1 MB, but even better is alexturek/aws-cli-docker⁠ that has been downloaded 45,088 times... it is freaking 913.3 MB! What am I missing here? Why put crap like that out? Do they work for cloud storage companies? :)

⁠Thanks

Tag summary

Content type

Image

Digest

sha256:5f5a46049…

Size

42.8 MB

Last updated

almost 11 years ago

docker pull philcryer/min-jessie-awscli