Public Repository

Last pushed: 2 years ago
Short Description
A minimal Alpine Linux build with awscli (size: 59.31 MB)
Full Description

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-awscli and tack on the aws commands at the end. For example:

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

If you get results without errors, you're gtg, run it again with <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 <phil@philcryer.com>

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 these people work for cloud storage companies? :)

Thanks

Docker Pull Command
Owner
philcryer