Mercurial > p > roundup > code
comparison scripts/Docker/Dockerfile @ 8225:63a016f4b562
build: use pip --no-cache-dir not --no-cache
Use the proper name even though the shorter name is recognized.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Thu, 19 Dec 2024 11:41:51 -0500 |
| parents | 53dba022d4cd |
| children | 92dad05379f9 |
comparison
equal
deleted
inserted
replaced
| 8224:5913ec1673c2 | 8225:63a016f4b562 |
|---|---|
| 87 ARG VERBOSE | 87 ARG VERBOSE |
| 88 ARG pythonversion | 88 ARG pythonversion |
| 89 | 89 |
| 90 RUN [ -z "${VERBOSE}" ] || set -xv; \ | 90 RUN [ -z "${VERBOSE}" ] || set -xv; \ |
| 91 CWD="$PWD" && \ | 91 CWD="$PWD" && \ |
| 92 upgrades=$(python3 -m pip --no-cache --disable-pip-version-check \ | 92 upgrades=$(python3 -m pip --no-cache-dir --disable-pip-version-check \ |
| 93 list --outdated | awk 'NR > 2 {print $1}'); \ | 93 list --outdated | awk 'NR > 2 {print $1}'); \ |
| 94 if [ -n "$upgrades" ]; then \ | 94 if [ -n "$upgrades" ]; then \ |
| 95 echo "Pip updating $upgrades"; \ | 95 echo "Pip updating $upgrades"; \ |
| 96 python -m pip --no-cache --disable-pip-version-check \ | 96 python -m pip --no-cache-dir --disable-pip-version-check \ |
| 97 install -U $upgrades < /dev/null; \ | 97 install -U $upgrades < /dev/null; \ |
| 98 else \ | 98 else \ |
| 99 echo "Nothing to pip update"; \ | 99 echo "Nothing to pip update"; \ |
| 100 fi; \ | 100 fi; \ |
| 101 ls -l /usr/local/lib/python${pythonversion}/site-packages; \ | 101 ls -l /usr/local/lib/python${pythonversion}/site-packages; \ |
| 209 mariadb-connector-c \ | 209 mariadb-connector-c \ |
| 210 libpq \ | 210 libpq \ |
| 211 libstdc++ \ | 211 libstdc++ \ |
| 212 libxapian \ | 212 libxapian \ |
| 213 zstd-libs; \ | 213 zstd-libs; \ |
| 214 upgrades=$(python3 -m pip --no-cache --disable-pip-version-check \ | 214 upgrades=$(python3 -m pip --no-cache-dir --disable-pip-version-check \ |
| 215 list --outdated | awk 'NR > 2 {print $1}'); \ | 215 list --outdated | awk 'NR > 2 {print $1}'); \ |
| 216 if [ -n "$upgrades" ]; then \ | 216 if [ -n "$upgrades" ]; then \ |
| 217 echo "Pip updating $upgrades"; \ | 217 echo "Pip updating $upgrades"; \ |
| 218 python -m pip --no-cache --disable-pip-version-check \ | 218 python -m pip --no-cache-dir --disable-pip-version-check \ |
| 219 install -U $upgrades < /dev/null; \ | 219 install -U $upgrades < /dev/null; \ |
| 220 else \ | 220 else \ |
| 221 echo "Nothing to pip update"; \ | 221 echo "Nothing to pip update"; \ |
| 222 fi; \ | 222 fi; \ |
| 223 test -s /usr/bin/dumb-init | 223 test -s /usr/bin/dumb-init |
