Mark required packages before cleanup

Mark required packages before purging and autoremove'ing for cleanup.

* python-minimal - For /usr/bin/python
* python-setuptools - For required setuptools module

Change-Id: Ibe5cbe9090041db2d158cfccee82c66dcfe3fb2f
Closes-Bug: #1470199
This commit is contained in:
Jacob McCann 2015-07-01 18:42:05 +00:00
parent 4c1d2cdb19
commit b4dea3eb41
1 changed files with 5 additions and 0 deletions

View File

@ -25,6 +25,11 @@ RUN pip install /tmp/ironic-python-agent
RUN rm -rf /tmp/ironic-python-agent
RUN rm -rf /var/lib/apt/lists/*
# Before cleaning mark packages that are required so they are not removed
RUN apt-mark manual python-setuptools
RUN apt-mark manual python-minimal
# Remove no longer needed packages
RUN apt-get -y purge gcc-4.6 gcc python2.7-dev git python3 \
python3-minimal python3.4 python3.4-minimal && \
apt-get -y autoremove && \