Sign inSign up

dswidgetlab/awscli

By dswidgetlab

•Updated over 4 years ago

Amazon Web Services cli

Image
0

4.8K

dswidgetlab/awscli repository overview

⁠Description

Amazon S3 command line

= python:3.7.4-slim-stretch plus:

  • install aws cli
  • install open-ssh client
  • install jq (json parser)
  • install yq (yaml parser)

⁠How to execute

docker run -ti dswidgetlab/awscli

root@awscli:/# aws --version
aws-cli/1.16.248 Python/3.7.4 Linux/4.9.184-linuxkit botocore/1.12.238

⁠Dockerfile :

FROM python:3.7-slim-stretch

# pip install
RUN pip install awscli
RUN aws --version

# apt install
RUN apt-get update && DEBIAN_FRONTEND=noninteractive
RUN apt-get install -y apt-utils zip openssh-client jq curl
RUN apt-get install -y git
RUN rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

# yq install
RUN wget -qO /usr/local/bin/yq https://github.com/mikefarah/yq/releases/download/v4.25.1/yq_linux_amd64
RUN chmod +x /usr/local/bin/yq

# update SSH config
RUN mv /etc/ssh/ssh_config /etc/ssh/ssh_config.orig
COPY ssh_config /etc/ssh/ssh_config
RUN chmod 644 /etc/ssh/ssh_config

RUN mkdir -p /home/s3/.ssh
RUN chmod 700 /home/s3/.ssh

WORKDIR /home/s3
ENTRYPOINT bash

⁠How to build & push :

docker build -t dswidgetlab/awscli .
docker push dswidgetlab/awscli

Tag summary

Content type

Image

Digest

Size

105.9 MB

Last updated

over 4 years ago

docker pull dswidgetlab/awscli