From e7ed31940c38c45715782f11d5a47ff806501644 Mon Sep 17 00:00:00 2001 From: Davide Monfrecola Date: Tue, 9 Jul 2019 18:32:57 +0200 Subject: [PATCH] Remove pip from the commit retrieval image (#676) Fixes #647 --- infra/dockerfile.commit_retrieval | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/infra/dockerfile.commit_retrieval b/infra/dockerfile.commit_retrieval index df61fbbf..fcd0d33b 100644 --- a/infra/dockerfile.commit_retrieval +++ b/infra/dockerfile.commit_retrieval @@ -2,12 +2,12 @@ FROM mozilla/bugbug-base:latest # Mercurial need Python2 :( # git is required by the annotate pipeline. -RUN apt-get update && apt-get install -y python-pip git && rm -rf /var/lib/apt/lists/* - -RUN python2 -m pip install --disable-pip-version-check --no-cache-dir mercurial==4.8 - -# Robustcheckout setup -RUN hg clone -r 6cd994e30bb1 https://hg.mozilla.org/hgcustom/version-control-tools /version-control-tools/ +RUN apt-get update && \ + apt-get install -y python python-pip git && \ + python2 -m pip install --disable-pip-version-check --no-cache-dir mercurial==4.8 && \ + hg clone -r 6cd994e30bb1 https://hg.mozilla.org/hgcustom/version-control-tools /version-control-tools/ && \ + apt-get purge -y python-pip && apt-get autoremove -y && \ + rm -rf /var/lib/apt/lists/* COPY infra/hgrc /root/.hgrc