Skip to content

Commit 496c4d2

Browse files
author
Xin Wang
committed
* Add a new image: Node.js 10.1.0
* Fix Ruby 2.5.1 Bundle install * Lock AWS CLI to major verion
1 parent b8433cd commit 496c4d2

File tree

25 files changed

+176
-23
lines changed

25 files changed

+176
-23
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ The following images are actively maintained by AWS CodeBuild, and are listed in
4242
+ [golang 1.10](ubuntu/golang/1.10)
4343
+ [java openjdk-8](ubuntu/java/openjdk-8)
4444
+ [java openjdk-9](ubuntu/java/openjdk-9)
45+
+ [nodejs 10.1.0](ubuntu/nodejs/10.1.0)
4546
+ [nodejs 6.3.1](ubuntu/nodejs/6.3.1)
4647
+ [nodejs 8.11.0](ubuntu/nodejs/8.11.0)
4748
+ [php 5.6](ubuntu/php/5.6)

buildspec.yml

+2
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ phases:
2323
- docker build -t aws/codebuild/nodejs:6.3.1 .
2424
- cd $CODEBUILD_SRC_DIR/ubuntu/nodejs/8.11.0
2525
- docker build -t aws/codebuild/nodejs:8.11.0 .
26+
- cd $CODEBUILD_SRC_DIR/ubuntu/nodejs/10.1.0
27+
- docker build -t aws/codebuild/nodejs:10.1.0 .
2628
- cd $CODEBUILD_SRC_DIR/ubuntu/python/2.7.12
2729
- docker build -t aws/codebuild/python:2.7.12 .
2830
- cd $CODEBUILD_SRC_DIR/ubuntu/python/3.3.6

ubuntu/android-java-8/24.4.1/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ RUN set -ex \
8787
RUN set -ex \
8888
&& wget "https://bootstrap.pypa.io/2.6/get-pip.py" -O /tmp/get-pip.py \
8989
&& python /tmp/get-pip.py \
90-
&& pip install awscli \
90+
&& pip install awscli==1.* \
9191
&& rm -fr /var/lib/apt/lists/* /tmp/* /var/tmp/*
9292

9393
VOLUME /var/lib/docker

ubuntu/android-java-8/26.1.1/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ RUN set -ex \
8787
RUN set -ex \
8888
&& wget "https://bootstrap.pypa.io/2.6/get-pip.py" -O /tmp/get-pip.py \
8989
&& python /tmp/get-pip.py \
90-
&& pip install awscli \
90+
&& pip install awscli==1.* \
9191
&& rm -fr /var/lib/apt/lists/* /tmp/* /var/tmp/*
9292

9393
VOLUME /var/lib/docker

ubuntu/docker/17.09.0/Dockerfile

+2-1
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,10 @@ RUN set -ex \
8787
RUN set -ex \
8888
&& wget "https://bootstrap.pypa.io/2.6/get-pip.py" -O /tmp/get-pip.py \
8989
&& python /tmp/get-pip.py \
90-
&& pip install awscli \
90+
&& pip install awscli==1.* \
9191
&& rm -fr /var/lib/apt/lists/* /tmp/* /var/tmp/*
9292

9393
VOLUME /var/lib/docker
9494

9595
COPY dockerd-entrypoint.sh /usr/local/bin/
96+

ubuntu/dot-net/core-1/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ RUN set -ex \
8787
RUN set -ex \
8888
&& wget "https://bootstrap.pypa.io/2.6/get-pip.py" -O /tmp/get-pip.py \
8989
&& python /tmp/get-pip.py \
90-
&& pip install awscli \
90+
&& pip install awscli==1.* \
9191
&& rm -fr /var/lib/apt/lists/* /tmp/* /var/tmp/*
9292

9393
VOLUME /var/lib/docker

ubuntu/dot-net/core-2/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ RUN set -ex \
8787
RUN set -ex \
8888
&& wget "https://bootstrap.pypa.io/2.6/get-pip.py" -O /tmp/get-pip.py \
8989
&& python /tmp/get-pip.py \
90-
&& pip install awscli \
90+
&& pip install awscli==1.* \
9191
&& rm -fr /var/lib/apt/lists/* /tmp/* /var/tmp/*
9292

9393
VOLUME /var/lib/docker

ubuntu/golang/1.10/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ RUN set -ex \
8787
RUN set -ex \
8888
&& wget "https://bootstrap.pypa.io/2.6/get-pip.py" -O /tmp/get-pip.py \
8989
&& python /tmp/get-pip.py \
90-
&& pip install awscli \
90+
&& pip install awscli==1.* \
9191
&& rm -fr /var/lib/apt/lists/* /tmp/* /var/tmp/*
9292

9393
VOLUME /var/lib/docker

ubuntu/java/openjdk-8/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ RUN set -ex \
8787
RUN set -ex \
8888
&& wget "https://bootstrap.pypa.io/2.6/get-pip.py" -O /tmp/get-pip.py \
8989
&& python /tmp/get-pip.py \
90-
&& pip install awscli \
90+
&& pip install awscli==1.* \
9191
&& rm -fr /var/lib/apt/lists/* /tmp/* /var/tmp/*
9292

9393
VOLUME /var/lib/docker

ubuntu/java/openjdk-9/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ RUN set -ex \
8787
RUN set -ex \
8888
&& wget "https://bootstrap.pypa.io/2.6/get-pip.py" -O /tmp/get-pip.py \
8989
&& python /tmp/get-pip.py \
90-
&& pip install awscli \
90+
&& pip install awscli==1.* \
9191
&& rm -fr /var/lib/apt/lists/* /tmp/* /var/tmp/*
9292

9393
VOLUME /var/lib/docker

ubuntu/nodejs/10.1.0/Dockerfile

+124
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,124 @@
1+
# Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
#
3+
# Licensed under the Amazon Software License (the "License"). You may not use this file except in compliance with the License.
4+
# A copy of the License is located at
5+
#
6+
# http://aws.amazon.com/asl/
7+
#
8+
# or in the "license" file accompanying this file.
9+
# This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied.
10+
# See the License for the specific language governing permissions and limitations under the License.
11+
#
12+
13+
FROM ubuntu:14.04.5
14+
15+
ENV DOCKER_BUCKET="download.docker.com" \
16+
DOCKER_VERSION="17.09.0-ce" \
17+
DOCKER_CHANNEL="stable" \
18+
DOCKER_SHA256="a9e90a73c3cdfbf238f148e1ec0eaff5eb181f92f35bdd938fd7dab18e1c4647" \
19+
DIND_COMMIT="3b5fac462d21ca164b3778647420016315289034" \
20+
DOCKER_COMPOSE_VERSION="1.16.1" \
21+
GITVERSION_VERSION="3.6.5"
22+
23+
# Building git from source code:
24+
# Ubuntu's default git package is built with broken gnutls. Rebuild git with openssl.
25+
##########################################################################
26+
RUN set -ex \
27+
&& echo 'Acquire::CompressionTypes::Order:: "gz";' > /etc/apt/apt.conf.d/99use-gzip-compression \
28+
&& apt-get update \
29+
&& apt-get install -y --no-install-recommends \
30+
wget=1.15-* python=2.7.5-* python2.7-dev=2.7.6-* fakeroot=1.20-* ca-certificates \
31+
tar=1.27.1-* gzip=1.6-* zip=3.0-* autoconf=2.69-* automake=1:1.14.1-* \
32+
bzip2=1.0.6-* file=1:5.14-* g++=4:4.8.2-* gcc=4:4.8.2-* imagemagick=8:6.7.7.10-* \
33+
libbz2-dev=1.0.6-* libc6-dev=2.19-* libcurl4-openssl-dev=7.35.0-* libdb-dev=1:5.3.21~* \
34+
libevent-dev=2.0.21-stable-* libffi-dev=3.1~rc1+r3.0.13-* libgeoip-dev=1.6.0-* libglib2.0-dev=2.40.2-* \
35+
libjpeg-dev=8c-* libkrb5-dev=1.12+dfsg-* liblzma-dev=5.1.1alpha+20120614-* \
36+
libmagickcore-dev=8:6.7.7.10-* libmagickwand-dev=8:6.7.7.10-* libmysqlclient-dev=5.5.60-* \
37+
libncurses5-dev=5.9+20140118-* libpng12-dev=1.2.50-* libpq-dev=9.3.22-* libreadline-dev=6.3-* \
38+
libsqlite3-dev=3.8.2-* libssl-dev=1.0.1f-* libtool=2.4.2-* libwebp-dev=0.4.0-* \
39+
libxml2-dev=2.9.1+dfsg1-* libxslt1-dev=1.1.28-* libyaml-dev=0.1.4-* make=3.81-* \
40+
patch=2.7.1-* xz-utils=5.1.1alpha+20120614-* zlib1g-dev=1:1.2.8.dfsg-* unzip=6.0-* curl=7.35.0-* \
41+
e2fsprogs=1.42.9-* iptables=1.4.21-* xfsprogs=3.1.9ubuntu2 xz-utils=5.1.1alpha+20120614-* \
42+
mono-mcs=3.2.8+dfsg-* \
43+
&& apt-get install -y -qq less=458-* groff=1.22.2-* \
44+
&& apt-get -qy build-dep git=1:1.9.1 \
45+
&& apt-get -qy install libcurl4-openssl-dev=7.35.0-* git-man=1:1.9.1-* liberror-perl=0.17-* \
46+
&& mkdir -p /usr/src/git-openssl \
47+
&& cd /usr/src/git-openssl \
48+
&& apt-get source git=1:1.9.1 \
49+
&& cd $(find -mindepth 1 -maxdepth 1 -type d -name "git-*") \
50+
&& sed -i -- 's/libcurl4-gnutls-dev/libcurl4-openssl-dev/' ./debian/control \
51+
&& sed -i -- '/TEST\s*=\s*test/d' ./debian/rules \
52+
&& dpkg-buildpackage -rfakeroot -b \
53+
&& find .. -type f -name "git_*ubuntu*.deb" -exec dpkg -i \{\} \; \
54+
&& rm -rf /usr/src/git-openssl \
55+
&& rm -rf /var/lib/apt/lists/* \
56+
&& apt-get clean
57+
58+
# Download and set up GitVersion
59+
RUN set -ex \
60+
&& wget "https://github.com/GitTools/GitVersion/releases/download/v${GITVERSION_VERSION}/GitVersion_${GITVERSION_VERSION}.zip" -O /tmp/GitVersion_${GITVERSION_VERSION}.zip \
61+
&& mkdir -p /usr/local/GitVersion_${GITVERSION_VERSION} \
62+
&& unzip /tmp/GitVersion_${GITVERSION_VERSION}.zip -d /usr/local/GitVersion_${GITVERSION_VERSION} \
63+
&& rm /tmp/GitVersion_${GITVERSION_VERSION}.zip \
64+
&& echo "mono /usr/local/GitVersion_${GITVERSION_VERSION}/GitVersion.exe /output json /showvariable \$1" >> /usr/local/bin/gitversion \
65+
&& chmod +x /usr/local/bin/gitversion
66+
# Install Docker
67+
RUN set -ex \
68+
&& curl -fSL "https://${DOCKER_BUCKET}/linux/static/${DOCKER_CHANNEL}/x86_64/docker-${DOCKER_VERSION}.tgz" -o docker.tgz \
69+
&& echo "${DOCKER_SHA256} *docker.tgz" | sha256sum -c - \
70+
&& tar --extract --file docker.tgz --strip-components 1 --directory /usr/local/bin/ \
71+
&& rm docker.tgz \
72+
&& docker -v \
73+
# set up subuid/subgid so that "--userns-remap=default" works out-of-the-box
74+
&& addgroup dockremap \
75+
&& useradd -g dockremap dockremap \
76+
&& echo 'dockremap:165536:65536' >> /etc/subuid \
77+
&& echo 'dockremap:165536:65536' >> /etc/subgid \
78+
&& wget "https://raw.githubusercontent.com/docker/docker/${DIND_COMMIT}/hack/dind" -O /usr/local/bin/dind \
79+
&& curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-Linux-x86_64 > /usr/local/bin/docker-compose \
80+
&& chmod +x /usr/local/bin/dind /usr/local/bin/docker-compose \
81+
# Ensure docker-compose works
82+
&& docker-compose version
83+
84+
# Install dependencies by all python images equivalent to buildpack-deps:jessie
85+
# on the public repos.
86+
87+
RUN set -ex \
88+
&& wget "https://bootstrap.pypa.io/2.6/get-pip.py" -O /tmp/get-pip.py \
89+
&& python /tmp/get-pip.py \
90+
&& pip install awscli==1.* \
91+
&& rm -fr /var/lib/apt/lists/* /tmp/* /var/tmp/*
92+
93+
VOLUME /var/lib/docker
94+
95+
COPY dockerd-entrypoint.sh /usr/local/bin/
96+
97+
ENV NODE_VERSION="10.1.0"
98+
99+
RUN set -ex \
100+
&& for key in \
101+
94AE36675C464D64BAFA68DD7434390BDBE9B9C5 \
102+
0034A06D9D9B0064CE8ADF6BF1747F4AD2306D93 \
103+
FD3A5288F042B6850C66B31F09FE44734EB7990E \
104+
71DCFD284A79C3B38668286BC97EC7A07EDE3FC1 \
105+
DD8F2338BAE7501E3DD5AC78C273792F7D83545D \
106+
B9AE9905FFD7803F25714661B63B535A4C206CA9 \
107+
C4F0DFFF4E8C1A8236409D08E73BC641CC11F4C8 \
108+
77984A986EBC2AA786BC0F66B01FBB92821C587A \
109+
56730D5401028683275BD23C23EFEFE93C4CFFFE \
110+
; do \
111+
gpg --keyserver ha.pool.sks-keyservers.net --recv-keys "$key"; \
112+
done
113+
114+
RUN set -ex \
115+
&& wget "https://nodejs.org/download/release/v$NODE_VERSION/node-v$NODE_VERSION-linux-x64.tar.gz" -O node-v$NODE_VERSION-linux-x64.tar.gz \
116+
&& wget "https://nodejs.org/download/release/v$NODE_VERSION/SHASUMS256.txt.asc" -O SHASUMS256.txt.asc \
117+
&& gpg --batch --decrypt --output SHASUMS256.txt SHASUMS256.txt.asc \
118+
&& grep " node-v$NODE_VERSION-linux-x64.tar.gz\$" SHASUMS256.txt | sha256sum -c - \
119+
&& tar -xzf "node-v$NODE_VERSION-linux-x64.tar.gz" -C /usr/local --strip-components=1 \
120+
&& rm "node-v$NODE_VERSION-linux-x64.tar.gz" SHASUMS256.txt.asc SHASUMS256.txt \
121+
&& ln -s /usr/local/bin/node /usr/local/bin/nodejs \
122+
&& rm -fr /var/lib/apt/lists/* /tmp/* /var/tmp/*
123+
124+
CMD [ "node" ]
+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/bin/sh
2+
set -e
3+
4+
/usr/local/bin/dockerd \
5+
--host=unix:///var/run/docker.sock \
6+
--host=tcp://127.0.0.1:2375 \
7+
--storage-driver=overlay &>/var/log/docker.log &
8+
9+
10+
tries=0
11+
d_timeout=60
12+
until docker info >/dev/null 2>&1
13+
do
14+
if [ "$tries" -gt "$d_timeout" ]; then
15+
cat /var/log/docker.log
16+
echo 'Timed out trying to connect to internal docker host.' >&2
17+
exit 1
18+
fi
19+
tries=$(( $tries + 1 ))
20+
sleep 1
21+
done
22+
23+
eval "$@"

ubuntu/nodejs/6.3.1/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ RUN set -ex \
8787
RUN set -ex \
8888
&& wget "https://bootstrap.pypa.io/2.6/get-pip.py" -O /tmp/get-pip.py \
8989
&& python /tmp/get-pip.py \
90-
&& pip install awscli \
90+
&& pip install awscli==1.* \
9191
&& rm -fr /var/lib/apt/lists/* /tmp/* /var/tmp/*
9292

9393
VOLUME /var/lib/docker

ubuntu/nodejs/8.11.0/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ RUN set -ex \
8787
RUN set -ex \
8888
&& wget "https://bootstrap.pypa.io/2.6/get-pip.py" -O /tmp/get-pip.py \
8989
&& python /tmp/get-pip.py \
90-
&& pip install awscli \
90+
&& pip install awscli==1.* \
9191
&& rm -fr /var/lib/apt/lists/* /tmp/* /var/tmp/*
9292

9393
VOLUME /var/lib/docker

ubuntu/php/5.6/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ RUN set -ex \
8787
RUN set -ex \
8888
&& wget "https://bootstrap.pypa.io/2.6/get-pip.py" -O /tmp/get-pip.py \
8989
&& python /tmp/get-pip.py \
90-
&& pip install awscli \
90+
&& pip install awscli==1.* \
9191
&& rm -fr /var/lib/apt/lists/* /tmp/* /var/tmp/*
9292

9393
VOLUME /var/lib/docker

ubuntu/php/7.0/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ RUN set -ex \
8787
RUN set -ex \
8888
&& wget "https://bootstrap.pypa.io/2.6/get-pip.py" -O /tmp/get-pip.py \
8989
&& python /tmp/get-pip.py \
90-
&& pip install awscli \
90+
&& pip install awscli==1.* \
9191
&& rm -fr /var/lib/apt/lists/* /tmp/* /var/tmp/*
9292

9393
VOLUME /var/lib/docker

ubuntu/python/2.7.12/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ RUN set -ex \
127127
# ("Requirement already up-to-date: pip==8.1.2 in /usr/local/lib/python3.6/site-packages")
128128
# https://github.com/docker-library/python/pull/143#issuecomment-241032683
129129
&& pip install --no-cache-dir --upgrade --force-reinstall "pip==$PYTHON_PIP_VERSION" \
130-
&& pip install awscli --no-cache-dir \
130+
&& pip install awscli==1.* --no-cache-dir \
131131
# then we use "pip list" to ensure we don't have more than one pip version installed
132132
# https://github.com/docker-library/python/pull/100
133133
&& [ "$(pip list |tac|tac| awk -F '[ ()]+' '$1 == "pip" { print $2; exit }')" = "$PYTHON_PIP_VERSION" ] \

ubuntu/python/3.3.6/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ RUN set -ex \
130130
# ("Requirement already up-to-date: pip==8.1.2 in /usr/local/lib/python3.6/site-packages")
131131
# https://github.com/docker-library/python/pull/143#issuecomment-241032683
132132
&& pip3 install --no-cache-dir --upgrade --force-reinstall "pip==$PYTHON_PIP_VERSION" \
133-
&& pip install awscli --no-cache-dir \
133+
&& pip install awscli==1.* --no-cache-dir \
134134
# then we use "pip list" to ensure we don't have more than one pip version installed
135135
# https://github.com/docker-library/python/pull/100
136136
&& [ "$(pip list |tac|tac| awk -F '[ ()]+' '$1 == "pip" { print $2; exit }')" = "$PYTHON_PIP_VERSION" ] \

ubuntu/python/3.4.5/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ RUN set -ex \
130130
# ("Requirement already up-to-date: pip==8.1.2 in /usr/local/lib/python3.6/site-packages")
131131
# https://github.com/docker-library/python/pull/143#issuecomment-241032683
132132
&& pip3 install --no-cache-dir --upgrade --force-reinstall "pip==$PYTHON_PIP_VERSION" \
133-
&& pip install awscli --no-cache-dir \
133+
&& pip install awscli==1.* --no-cache-dir \
134134
# then we use "pip list" to ensure we don't have more than one pip version installed
135135
# https://github.com/docker-library/python/pull/100
136136
&& [ "$(pip list |tac|tac| awk -F '[ ()]+' '$1 == "pip" { print $2; exit }')" = "$PYTHON_PIP_VERSION" ] \

ubuntu/python/3.5.2/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ RUN set -ex \
130130
# ("Requirement already up-to-date: pip==8.1.2 in /usr/local/lib/python3.6/site-packages")
131131
# https://github.com/docker-library/python/pull/143#issuecomment-241032683
132132
&& pip3 install --no-cache-dir --upgrade --force-reinstall "pip==$PYTHON_PIP_VERSION" \
133-
&& pip install awscli --no-cache-dir \
133+
&& pip install awscli==1.* --no-cache-dir \
134134
# then we use "pip list" to ensure we don't have more than one pip version installed
135135
# https://github.com/docker-library/python/pull/100
136136
&& [ "$(pip list |tac|tac| awk -F '[ ()]+' '$1 == "pip" { print $2; exit }')" = "$PYTHON_PIP_VERSION" ] \

ubuntu/python/3.6.5/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
131131
# ("Requirement already up-to-date: pip==8.1.2 in /usr/local/lib/python3.6/site-packages")
132132
# https://github.com/docker-library/python/pull/143#issuecomment-241032683
133133
&& pip3 install --no-cache-dir --upgrade --force-reinstall "pip==$PYTHON_PIP_VERSION" \
134-
&& pip install awscli boto3 pipenv virtualenv --no-cache-dir \
134+
&& pip install awscli==1.* boto3 pipenv virtualenv --no-cache-dir \
135135
# then we use "pip list" to ensure we don't have more than one pip version installed
136136
# https://github.com/docker-library/python/pull/100
137137
&& [ "$(pip list |tac|tac| awk -F '[ ()]+' '$1 == "pip" { print $2; exit }')" = "$PYTHON_PIP_VERSION" ] \

ubuntu/ruby/2.2.5/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ RUN set -ex \
8787
RUN set -ex \
8888
&& wget "https://bootstrap.pypa.io/2.6/get-pip.py" -O /tmp/get-pip.py \
8989
&& python /tmp/get-pip.py \
90-
&& pip install awscli \
90+
&& pip install awscli==1.* \
9191
&& rm -fr /var/lib/apt/lists/* /tmp/* /var/tmp/*
9292

9393
VOLUME /var/lib/docker

ubuntu/ruby/2.3.1/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ RUN set -ex \
8787
RUN set -ex \
8888
&& wget "https://bootstrap.pypa.io/2.6/get-pip.py" -O /tmp/get-pip.py \
8989
&& python /tmp/get-pip.py \
90-
&& pip install awscli \
90+
&& pip install awscli==1.* \
9191
&& rm -fr /var/lib/apt/lists/* /tmp/* /var/tmp/*
9292

9393
VOLUME /var/lib/docker

ubuntu/ruby/2.5.1/Dockerfile

+4-3
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ RUN set -ex \
8787
RUN set -ex \
8888
&& wget "https://bootstrap.pypa.io/2.6/get-pip.py" -O /tmp/get-pip.py \
8989
&& python /tmp/get-pip.py \
90-
&& pip install awscli \
90+
&& pip install awscli==1.* \
9191
&& rm -fr /var/lib/apt/lists/* /tmp/* /var/tmp/*
9292

9393
VOLUME /var/lib/docker
@@ -99,8 +99,9 @@ ENV RUBY_MAJOR="2.5" \
9999
RUBY_DOWNLOAD_SHA256="dac81822325b79c3ba9532b048c2123357d3310b2b40024202f360251d9829b1" \
100100
RUBYGEMS_VERSION="2.7.2" \
101101
BUNDLER_VERSION="1.16.1" \
102-
GEM_HOME="/usr/local/bundle" \
103-
BUNDLE_PATH="$GEM_HOME" \
102+
GEM_HOME="/usr/local/bundle"
103+
104+
ENV BUNDLE_PATH="$GEM_HOME" \
104105
BUNDLE_BIN="$GEM_HOME/bin" \
105106
BUNDLE_SILENCE_ROOT_WARNING=1 \
106107
BUNDLE_APP_CONFIG="$GEM_HOME"

ubuntu/ubuntu-base/14.04/Dockerfile

+2-1
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,10 @@ RUN set -ex \
7575
RUN set -ex \
7676
&& wget "https://bootstrap.pypa.io/2.6/get-pip.py" -O /tmp/get-pip.py \
7777
&& python /tmp/get-pip.py \
78-
&& pip install awscli \
78+
&& pip install awscli==1.* \
7979
&& rm -fr /var/lib/apt/lists/* /tmp/* /var/tmp/*
8080

8181
VOLUME /var/lib/docker
8282

8383
COPY dockerd-entrypoint.sh /usr/local/bin/
84+

0 commit comments

Comments
 (0)