Bump IPA container to use Trusty

Bump IPA container to use trusty. This gives us a newer version of pip
which is required to install newer requirements that are packaged as
wheels.

Only other change to dockerfile is to ensure python 3 is
removed, in order to avoid raising the size of the container. After this
patch, the agent image goes up in size 3M, which is managable.

Change-Id: I11f39fadb87d42dd15885e6afc63df2c927ce771
This commit is contained in:
Jay Faulkner
2014-07-30 15:48:19 -07:00
parent e4f5984043
commit fee7ca28b4

View File

@@ -1,4 +1,4 @@
FROM stackbrew/ubuntu:precise
FROM stackbrew/ubuntu:trusty
# The add is before the RUN to ensure we get the latest version of packages
# Docker will cache RUN commands, but because the SHA1 of the dir will be
@@ -24,7 +24,7 @@ RUN pip install /tmp/ironic-python-agent
RUN rm -rf /tmp/ironic-python-agent
RUN rm -rf /var/lib/apt/lists/*
RUN apt-get -y purge perl gcc-4.6 gcc python2.7-dev git && \
RUN apt-get -y purge perl gcc-4.6 gcc python2.7-dev git python3* && \
apt-get -y autoremove && \
apt-get clean