Skip to content

Commit b6531ce

Browse files
committed
Merge pull request #663 from opdemand/dockerfile-makefile-cleanup
Dockerfile cleanup
2 parents 7ca34dd + 5e672cd commit b6531ce

12 files changed

Lines changed: 30 additions & 33 deletions

File tree

builder/Dockerfile

Lines changed: 4 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

@@ -51,6 +50,7 @@ RUN chown -R root:root /app
5150

5251
# define the execution environment
5352
VOLUME /var/lib/docker
53+
WORKDIR /app
5454
ENTRYPOINT ["/app/bin/entry"]
5555
CMD ["/app/bin/boot"]
5656
EXPOSE 22

cache/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,6 @@ RUN apt-get install -yq redis-server
1111
ADD . /app
1212

1313
# define the execution environment
14+
WORKDIR /app
1415
CMD ["/app/bin/boot"]
1516
EXPOSE 6379

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

database/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,6 @@ ADD . /app
1313

1414
# define the execution environment
1515
VOLUME ["/var/lib/postgresql"]
16+
WORKDIR /app
1617
CMD ["/app/bin/boot"]
1718
EXPOSE 5432

0 commit comments

Comments
 (0)