Add a small test to ensure that the pip version we installed is the pip we got
See https://github.com/docker-library/python/issues/118 for context.
This commit is contained in:
parent
8726813a89
commit
682708e786
|
@ -33,6 +33,7 @@ RUN set -ex \
|
|||
&& ldconfig \
|
||||
&& curl -fSL 'https://bootstrap.pypa.io/get-pip.py' | python2 \
|
||||
&& pip install --no-cache-dir --upgrade pip==$PYTHON_PIP_VERSION \
|
||||
&& [ "$(pip list | awk -F '[ ()]+' '$1 == "pip" { print $2; exit }')" = "$PYTHON_PIP_VERSION" ] \
|
||||
&& find /usr/local -depth \
|
||||
\( \
|
||||
\( -type d -a -name test -o -name tests \) \
|
||||
|
|
|
@ -43,6 +43,7 @@ RUN set -ex \
|
|||
&& make install \
|
||||
&& curl -fSL 'https://bootstrap.pypa.io/get-pip.py' | python2 \
|
||||
&& pip install --no-cache-dir --upgrade pip==$PYTHON_PIP_VERSION \
|
||||
&& [ "$(pip list | awk -F '[ ()]+' '$1 == "pip" { print $2; exit }')" = "$PYTHON_PIP_VERSION" ] \
|
||||
&& find /usr/local -depth \
|
||||
\( \
|
||||
\( -type d -a -name test -o -name tests \) \
|
||||
|
|
|
@ -53,6 +53,7 @@ RUN set -ex \
|
|||
&& ldconfig \
|
||||
&& curl -fSL 'https://bootstrap.pypa.io/get-pip.py' | python2 \
|
||||
&& pip install --no-cache-dir --upgrade pip==$PYTHON_PIP_VERSION \
|
||||
&& [ "$(pip list | awk -F '[ ()]+' '$1 == "pip" { print $2; exit }')" = "$PYTHON_PIP_VERSION" ] \
|
||||
&& find /usr/local -depth \
|
||||
\( \
|
||||
\( -type d -a -name test -o -name tests \) \
|
||||
|
|
|
@ -33,6 +33,7 @@ RUN set -ex \
|
|||
&& ldconfig \
|
||||
&& curl -fSL 'https://bootstrap.pypa.io/get-pip.py' | python2 \
|
||||
&& pip install --no-cache-dir --upgrade pip==$PYTHON_PIP_VERSION \
|
||||
&& [ "$(pip list | awk -F '[ ()]+' '$1 == "pip" { print $2; exit }')" = "$PYTHON_PIP_VERSION" ] \
|
||||
&& find /usr/local -depth \
|
||||
\( \
|
||||
\( -type d -a -name test -o -name tests \) \
|
||||
|
|
|
@ -33,6 +33,7 @@ RUN set -ex \
|
|||
&& ldconfig \
|
||||
&& curl -fSL 'https://bootstrap.pypa.io/get-pip.py' | python3 \
|
||||
&& pip install --no-cache-dir --upgrade pip==$PYTHON_PIP_VERSION \
|
||||
&& [ "$(pip list | awk -F '[ ()]+' '$1 == "pip" { print $2; exit }')" = "$PYTHON_PIP_VERSION" ] \
|
||||
&& find /usr/local -depth \
|
||||
\( \
|
||||
\( -type d -a -name test -o -name tests \) \
|
||||
|
|
|
@ -44,6 +44,7 @@ RUN set -ex \
|
|||
&& make install \
|
||||
&& curl -fSL 'https://bootstrap.pypa.io/get-pip.py' | python3 \
|
||||
&& pip install --no-cache-dir --upgrade pip==$PYTHON_PIP_VERSION \
|
||||
&& [ "$(pip list | awk -F '[ ()]+' '$1 == "pip" { print $2; exit }')" = "$PYTHON_PIP_VERSION" ] \
|
||||
&& find /usr/local -depth \
|
||||
\( \
|
||||
\( -type d -a -name test -o -name tests \) \
|
||||
|
|
|
@ -54,6 +54,7 @@ RUN set -ex \
|
|||
&& ldconfig \
|
||||
&& curl -fSL 'https://bootstrap.pypa.io/get-pip.py' | python3 \
|
||||
&& pip install --no-cache-dir --upgrade pip==$PYTHON_PIP_VERSION \
|
||||
&& [ "$(pip list | awk -F '[ ()]+' '$1 == "pip" { print $2; exit }')" = "$PYTHON_PIP_VERSION" ] \
|
||||
&& find /usr/local -depth \
|
||||
\( \
|
||||
\( -type d -a -name test -o -name tests \) \
|
||||
|
|
|
@ -33,6 +33,7 @@ RUN set -ex \
|
|||
&& ldconfig \
|
||||
&& curl -fSL 'https://bootstrap.pypa.io/get-pip.py' | python3 \
|
||||
&& pip install --no-cache-dir --upgrade pip==$PYTHON_PIP_VERSION \
|
||||
&& [ "$(pip list | awk -F '[ ()]+' '$1 == "pip" { print $2; exit }')" = "$PYTHON_PIP_VERSION" ] \
|
||||
&& find /usr/local -depth \
|
||||
\( \
|
||||
\( -type d -a -name test -o -name tests \) \
|
||||
|
|
|
@ -32,6 +32,7 @@ RUN set -ex \
|
|||
&& make install \
|
||||
&& ldconfig \
|
||||
&& pip3 install --no-cache-dir --upgrade pip==$PYTHON_PIP_VERSION \
|
||||
&& [ "$(pip list | awk -F '[ ()]+' '$1 == "pip" { print $2; exit }')" = "$PYTHON_PIP_VERSION" ] \
|
||||
&& find /usr/local -depth \
|
||||
\( \
|
||||
\( -type d -a -name test -o -name tests \) \
|
||||
|
|
|
@ -44,6 +44,7 @@ RUN set -ex \
|
|||
&& make -j$(getconf _NPROCESSORS_ONLN) \
|
||||
&& make install \
|
||||
&& pip3 install --no-cache-dir --upgrade pip==$PYTHON_PIP_VERSION \
|
||||
&& [ "$(pip list | awk -F '[ ()]+' '$1 == "pip" { print $2; exit }')" = "$PYTHON_PIP_VERSION" ] \
|
||||
&& find /usr/local -depth \
|
||||
\( \
|
||||
\( -type d -a -name test -o -name tests \) \
|
||||
|
|
|
@ -53,6 +53,7 @@ RUN set -ex \
|
|||
&& make install \
|
||||
&& ldconfig \
|
||||
&& pip3 install --no-cache-dir --upgrade pip==$PYTHON_PIP_VERSION \
|
||||
&& [ "$(pip list | awk -F '[ ()]+' '$1 == "pip" { print $2; exit }')" = "$PYTHON_PIP_VERSION" ] \
|
||||
&& find /usr/local -depth \
|
||||
\( \
|
||||
\( -type d -a -name test -o -name tests \) \
|
||||
|
|
|
@ -32,6 +32,7 @@ RUN set -ex \
|
|||
&& make install \
|
||||
&& ldconfig \
|
||||
&& pip3 install --no-cache-dir --upgrade pip==$PYTHON_PIP_VERSION \
|
||||
&& [ "$(pip list | awk -F '[ ()]+' '$1 == "pip" { print $2; exit }')" = "$PYTHON_PIP_VERSION" ] \
|
||||
&& find /usr/local -depth \
|
||||
\( \
|
||||
\( -type d -a -name test -o -name tests \) \
|
||||
|
|
|
@ -32,6 +32,7 @@ RUN set -ex \
|
|||
&& make install \
|
||||
&& ldconfig \
|
||||
&& pip3 install --no-cache-dir --upgrade pip==$PYTHON_PIP_VERSION \
|
||||
&& [ "$(pip list | awk -F '[ ()]+' '$1 == "pip" { print $2; exit }')" = "$PYTHON_PIP_VERSION" ] \
|
||||
&& find /usr/local -depth \
|
||||
\( \
|
||||
\( -type d -a -name test -o -name tests \) \
|
||||
|
|
|
@ -44,6 +44,7 @@ RUN set -ex \
|
|||
&& make -j$(getconf _NPROCESSORS_ONLN) \
|
||||
&& make install \
|
||||
&& pip3 install --no-cache-dir --upgrade pip==$PYTHON_PIP_VERSION \
|
||||
&& [ "$(pip list | awk -F '[ ()]+' '$1 == "pip" { print $2; exit }')" = "$PYTHON_PIP_VERSION" ] \
|
||||
&& find /usr/local -depth \
|
||||
\( \
|
||||
\( -type d -a -name test -o -name tests \) \
|
||||
|
|
|
@ -53,6 +53,7 @@ RUN set -ex \
|
|||
&& make install \
|
||||
&& ldconfig \
|
||||
&& pip3 install --no-cache-dir --upgrade pip==$PYTHON_PIP_VERSION \
|
||||
&& [ "$(pip list | awk -F '[ ()]+' '$1 == "pip" { print $2; exit }')" = "$PYTHON_PIP_VERSION" ] \
|
||||
&& find /usr/local -depth \
|
||||
\( \
|
||||
\( -type d -a -name test -o -name tests \) \
|
||||
|
|
Loading…
Reference in New Issue