Skip to content

Instantly share code, notes, and snippets.

@mumoshu
Created November 14, 2016 03:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save mumoshu/5d7046950b6259eb68e1df5a406528e3 to your computer and use it in GitHub Desktop.
Save mumoshu/5d7046950b6259eb68e1df5a406528e3 to your computer and use it in GitHub Desktop.
$ docker build .
Sending build context to Docker daemon 2.048 kB
Step 1 : FROM alpine:3.4
3.4: Pulling from library/alpine
Digest: sha256:1354db23ff5478120c980eca1611a51c9f2b88b61f24283ee8200bf9a54f2e5c
Status: Downloaded newer image for alpine:3.4
---> baa5d63471ea
Step 2 : RUN apk --no-cache --update add bash curl less groff jq python py-pip && pip install awscli s3cmd https://s3.amazonaws.com/cloudformation-examples/aws-cfn-bootstrap-latest.tar.gz && apk del remove py-pip && mkdir /root/.aws
---> Running in e5cbd654094f
fetch http://dl-cdn.alpinelinux.org/alpine/v3.4/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.4/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.4/community/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.4/community/x86_64/APKINDEX.tar.gz
(1/22) Installing ncurses-terminfo-base (6.0-r7)
(2/22) Installing ncurses-terminfo (6.0-r7)
(3/22) Installing ncurses-libs (6.0-r7)
(4/22) Installing readline (6.3.008-r4)
(5/22) Installing bash (4.3.42-r4)
Executing bash-4.3.42-r4.post-install
(6/22) Installing ca-certificates (20160104-r4)
(7/22) Installing libssh2 (1.7.0-r0)
(8/22) Installing libcurl (7.51.0-r0)
(9/22) Installing curl (7.51.0-r0)
(10/22) Installing libgcc (5.3.0-r0)
(11/22) Installing libstdc++ (5.3.0-r0)
(12/22) Installing groff (1.22.3-r1)
(13/22) Installing jq (1.5-r1)
(14/22) Installing less (481-r2)
(15/22) Installing libbz2 (1.0.6-r5)
(16/22) Installing expat (2.1.1-r1)
(17/22) Installing libffi (3.2.1-r2)
(18/22) Installing gdbm (1.11-r1)
(19/22) Installing sqlite-libs (3.13.0-r0)
(20/22) Installing python (2.7.12-r0)
(21/22) Installing py-setuptools (20.8.0-r0)
(22/22) Installing py-pip (8.1.2-r0)
Executing busybox-1.24.2-r11.trigger
Executing ca-certificates-20160104-r4.trigger
OK: 73 MiB in 33 packages
Collecting https://s3.amazonaws.com/cloudformation-examples/aws-cfn-bootstrap-latest.tar.gz
Downloading https://s3.amazonaws.com/cloudformation-examples/aws-cfn-bootstrap-latest.tar.gz (460kB)
Collecting awscli
Downloading awscli-1.11.14-py2.py3-none-any.whl (1.0MB)
Collecting s3cmd
Downloading s3cmd-1.6.1.tar.gz (102kB)
Collecting python-daemon<2.0,>=1.5.2 (from aws-cfn-bootstrap==1.4)
Downloading python-daemon-1.6.1.tar.gz (47kB)
Collecting pystache>=0.4.0 (from aws-cfn-bootstrap==1.4)
Downloading pystache-0.5.4.tar.gz (75kB)
Requirement already satisfied (use --upgrade to upgrade): setuptools in /usr/lib/python2.7/site-packages (from aws-cfn-bootstrap==1.4)
Collecting s3transfer<0.2.0,>=0.1.9 (from awscli)
Downloading s3transfer-0.1.9-py2.py3-none-any.whl (53kB)
Collecting colorama<=0.3.7,>=0.2.5 (from awscli)
Downloading colorama-0.3.7-py2.py3-none-any.whl
Collecting botocore==1.4.71 (from awscli)
Downloading botocore-1.4.71-py2.py3-none-any.whl (2.8MB)
Collecting rsa<=3.5.0,>=3.1.2 (from awscli)
Downloading rsa-3.4.2-py2.py3-none-any.whl (46kB)
Collecting docutils>=0.10 (from awscli)
Downloading docutils-0.12.tar.gz (1.6MB)
Collecting python-dateutil (from s3cmd)
Downloading python_dateutil-2.6.0-py2.py3-none-any.whl (194kB)
Collecting python-magic (from s3cmd)
Downloading python-magic-0.4.12.tar.gz
Collecting lockfile>=0.9 (from python-daemon<2.0,>=1.5.2->aws-cfn-bootstrap==1.4)
Downloading lockfile-0.12.2-py2.py3-none-any.whl
Collecting futures<4.0.0,>=2.2.0; python_version == "2.6" or python_version == "2.7" (from s3transfer<0.2.0,>=0.1.9->awscli)
Downloading futures-3.0.5-py2-none-any.whl
Collecting jmespath<1.0.0,>=0.7.1 (from botocore==1.4.71->awscli)
Downloading jmespath-0.9.0-py2.py3-none-any.whl
Collecting pyasn1>=0.1.3 (from rsa<=3.5.0,>=3.1.2->awscli)
Downloading pyasn1-0.1.9-py2.py3-none-any.whl
Collecting six>=1.5 (from python-dateutil->s3cmd)
Downloading six-1.10.0-py2.py3-none-any.whl
Installing collected packages: six, python-dateutil, jmespath, docutils, botocore, futures, s3transfer, colorama, pyasn1, rsa, awscli, python-magic, s3cmd, lockfile, python-daemon, pystache, aws-cfn-bootstrap
Running setup.py install for docutils: started
Running setup.py install for docutils: finished with status 'done'
Running setup.py install for python-magic: started
Running setup.py install for python-magic: finished with status 'done'
Running setup.py install for s3cmd: started
Running setup.py install for s3cmd: finished with status 'done'
Running setup.py install for python-daemon: started
Running setup.py install for python-daemon: finished with status 'done'
Running setup.py install for pystache: started
Running setup.py install for pystache: finished with status 'done'
Running setup.py install for aws-cfn-bootstrap: started
Running setup.py install for aws-cfn-bootstrap: finished with status 'done'
Successfully installed aws-cfn-bootstrap-1.4 awscli-1.11.14 botocore-1.4.71 colorama-0.3.7 docutils-0.12 futures-3.0.5 jmespath-0.9.0 lockfile-0.12.2 pyasn1-0.1.9 pystache-0.5.4 python-daemon-1.6.1 python-dateutil-2.6.0 python-magic-0.4.12 rsa-3.4.2 s3cmd-1.6.1 s3transfer-0.1.9 six-1.10.0
You are using pip version 8.1.2, however version 9.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
The command '/bin/sh -c apk --no-cache --update add bash curl less groff jq python py-pip && pip install awscli s3cmd https://s3.amazonaws.com/cloudformation-examples/aws-cfn-bootstrap-latest.tar.gz && apk del remove py-pip && mkdir /root/.aws' returned a non-zero code: 1
FROM alpine:3.4
RUN apk --no-cache --update add bash curl less groff jq python py-pip && \
pip install awscli s3cmd https://s3.amazonaws.com/cloudformation-examples/aws-cfn-bootstrap-latest.tar.gz && \
apk del remove py-pip && \
mkdir /root/.aws
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment