Skip to content

Instantly share code, notes, and snippets.

@pwaller
Last active April 18, 2019 14:19
Show Gist options
  • Save pwaller/d61df9109ed716e1d8b7 to your computer and use it in GitHub Desktop.
Save pwaller/d61df9109ed716e1d8b7 to your computer and use it in GitHub Desktop.
Toolbox
# usage:
# docker build -t aws https://gist.github.com/d61df9109ed716e1d8b7.git
# alias dr='docker run -ti --rm -w $PWD -v $PWD:$PWD -v $HOME:$HOME -v /etc/passwd:/etc/passwd -v /etc/group:/etc/group -u $(id -u):$(id -g)'
# alias aws='dr aws aws'
FROM ubuntu:16.04
RUN apt-get update && apt-get install -y python3-pip git jq curl && pip3 install awscli
RUN mkdir /data && chown nobody /data
WORKDIR /data
USER nobody
ENV LC_ALL=C.UTF-8 AWS_DEFAULT_REGION=eu-west-1 AWS_REGION=eu-west-1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment