Skip to content

Commit 5e672cd

Browse files
committed
Standardize install of pip 1.5.4.
1 parent a6a3410 commit 5e672cd

9 files changed

Lines changed: 25 additions & 33 deletions

File tree

builder/Dockerfile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,9 @@ RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 36A1D7869245C8950F9
1616
RUN apt-get update -q
1717
RUN apt-get install -yq lxc-docker-0.8.0
1818

19-
# install latest pip
20-
RUN wget -q https://raw.github.com/pypa/pip/1.5.4/contrib/get-pip.py && \
21-
python get-pip.py && \
22-
rm get-pip.py
19+
# install recent pip
20+
RUN wget -qO- https://raw.github.com/pypa/pip/1.5.4/contrib/get-pip.py | python -
21+
2322
# install hook dependencies
2423
RUN pip install pyyaml requests
2524

contrib/digitalocean/prepare-controller-image.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,9 @@ echo deb https://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/dock
2424
apt-get update
2525
apt-get upgrade -yq
2626

27-
# install latest pip
28-
wget -q https://raw.github.com/pypa/pip/1.5.4/contrib/get-pip.py && \
29-
python get-pip.py && \
30-
rm get-pip.py
27+
# install recent pip
28+
wget -qO- https://raw.github.com/pypa/pip/1.5.4/contrib/get-pip.py | python -
29+
3130
# install required packages
3231
apt-get install lxc-docker-0.8.0 fail2ban curl git inotify-tools make -yq
3332

contrib/digitalocean/prepare-node-image.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,9 @@ echo deb https://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/dock
2424
apt-get update
2525
apt-get upgrade -yq
2626

27-
# install latest pip
28-
wget -q https://raw.github.com/pypa/pip/1.5.4/contrib/get-pip.py && \
29-
python get-pip.py && \
30-
rm get-pip.py
27+
# install recent pip
28+
wget -qO- https://raw.github.com/pypa/pip/1.5.4/contrib/get-pip.py | python -
29+
3130
# install required packages
3231
apt-get install lxc-docker-0.8.0 fail2ban curl git inotify-tools make -yq
3332

contrib/ec2/prepare-controller-ami.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,9 @@ echo deb https://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/dock
2929
apt-get update
3030
apt-get dist-upgrade -yq
3131

32-
# install latest pip
33-
wget -q https://raw.github.com/pypa/pip/1.5.4/contrib/get-pip.py && \
34-
python get-pip.py && \
35-
rm get-pip.py
32+
# install recent pip
33+
wget -qO- https://raw.github.com/pypa/pip/1.5.4/contrib/get-pip.py | python -
34+
3635
# install required packages
3736
apt-get install lxc-docker-0.8.0 fail2ban curl git inotify-tools make -yq
3837

contrib/ec2/prepare-node-ami.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,9 @@ echo deb https://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/dock
2929
apt-get update
3030
apt-get dist-upgrade -yq
3131

32-
# install latest pip
33-
wget -q https://raw.github.com/pypa/pip/1.5.4/contrib/get-pip.py && \
34-
python get-pip.py && \
35-
rm get-pip.py
32+
# install recent pip
33+
wget -qO- https://raw.github.com/pypa/pip/1.5.4/contrib/get-pip.py | python -
34+
3635
# install required packages
3736
apt-get install lxc-docker-0.8.0 fail2ban curl git inotify-tools make -yq
3837

contrib/rackspace/prepare-node-image.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,9 @@ echo deb https://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/dock
3030
apt-get update
3131
apt-get dist-upgrade -yq
3232

33-
# install latest pip
34-
wget -q https://raw.github.com/pypa/pip/1.5.4/contrib/get-pip.py && \
35-
python get-pip.py && \
36-
rm get-pip.py
33+
# install recent pip
34+
wget -qO- https://raw.github.com/pypa/pip/1.5.4/contrib/get-pip.py | python -
35+
3736
# install required packages
3837
apt-get install lxc-docker-0.8.0 fail2ban curl git inotify-tools make -yq
3938

contrib/vagrant/prepare-ubuntu-box.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,9 @@ echo deb https://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/dock
3131
apt-get update
3232
apt-get dist-upgrade -yq
3333

34-
# install latest pip
35-
wget -q https://raw.github.com/pypa/pip/1.5.4/contrib/get-pip.py && \
36-
python get-pip.py && \
37-
rm get-pip.py
34+
# install recent pip
35+
wget -qO- https://raw.github.com/pypa/pip/1.5.4/contrib/get-pip.py | python -
36+
3837
# install required packages
3938
apt-get install lxc-docker-0.8.0 fail2ban curl git inotify-tools make -yq
4039

controller/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ RUN apt-get update && \
99
RUN apt-get install -yq ruby1.9.1 rubygems
1010
RUN gem install --no-ri --no-rdoc chef
1111

12-
# install latest pip
12+
# install recent pip
1313
RUN wget -qO- https://raw.github.com/pypa/pip/1.5.4/contrib/get-pip.py | python -
1414

1515
# install requirements before ADD to cache layer and speed build

registry/Dockerfile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,9 @@ MAINTAINER Gabriel Monroy <gabriel@opdemand.com>
55
RUN sed -i 's/main$/main universe/' /etc/apt/sources.list && apt-get update
66
RUN apt-get install -y git-core build-essential python-dev \
77
libevent-dev python-openssl liblzma-dev wget
8-
# install latest pip
9-
RUN wget -q https://raw.github.com/pypa/pip/1.5.4/contrib/get-pip.py && \
10-
python get-pip.py && \
11-
rm get-pip.py
8+
9+
# install recent pip
10+
RUN wget -qO- https://raw.github.com/pypa/pip/1.5.4/contrib/get-pip.py | python -
1211

1312
# create a registry user
1413
RUN useradd -s /bin/bash registry

0 commit comments

Comments
 (0)