Leave git installed in docker builder

Downstream agent builders that inherit from this Dockerfile will often
need git installed to be able to install hardware managers and such.
Removing git and reinstalling it can cause weird apt dependency issues
down the line, so leave it installed.

Change-Id: I8d5f35d0c8c6a231144a7b0a5b5c8f6d051ab0b1
This commit is contained in:
Jim Rollenhagen 2016-01-28 09:49:14 -08:00
parent 1e30946835
commit 7c85ed8041
1 changed files with 3 additions and 1 deletions

View File

@ -35,7 +35,9 @@ RUN pip install --no-cache-dir -r /tmp/ironic-python-agent/requirements.txt
RUN pip install --no-cache-dir /tmp/ironic-python-agent
# Remove no longer needed packages
RUN apt-get -y purge gcc-4.6 gcc python2.7-dev git && \
# NOTE(jroll) leave git to avoid strange apt issues in downstream Dockerfiles
# that may inherit from this one.
RUN apt-get -y purge gcc-4.6 gcc python2.7-dev && \
apt-get -y autoremove && \
apt-get clean
RUN rm -rf /tmp/ironic-python-agent