Loading linux/py2/entrypoint.sh 100755 → 100644 +6 −6 Original line number Diff line number Diff line Loading @@ -19,14 +19,14 @@ if [[ "$PYPI_URL" != "https://pypi.python.org/" ]] || \ [[ "$PYPI_INDEX_URL" != "https://pypi.python.org/simple" ]]; then # the funky looking regexp just extracts the hostname, excluding port # to be used as a trusted-host. mkdir -p /root/pip echo "[global]" > /root/pip/pip.conf echo "index = $PYPI_URL" >> /root/pip/pip.conf echo "index-url = $PYPI_INDEX_URL" >> /root/pip/pip.conf echo "trusted-host = $(echo $PYPI_URL | perl -pe 's|^.*?://(.*?)(:.*?)?/.*$|$1|')" >> /root/pip/pip.conf mkdir -p /root/.pip echo "[global]" > /root/.pip/pip.conf echo "index = $PYPI_URL" >> /root/.pip/pip.conf echo "index-url = $PYPI_INDEX_URL" >> /root/.pip/pip.conf echo "trusted-host = $(echo $PYPI_URL | perl -pe 's|^.*?://(.*?)(:.*?)?/.*$|$1|')" >> /root/.pip/pip.conf echo "Using custom pip.conf: " cat /root/pip/pip.conf cat /root/.pip/pip.conf fi cd $WORKDIR Loading linux/py3/entrypoint.sh 100755 → 100644 +0 −0 File mode changed from 100755 to 100644. View file Loading
linux/py2/entrypoint.sh 100755 → 100644 +6 −6 Original line number Diff line number Diff line Loading @@ -19,14 +19,14 @@ if [[ "$PYPI_URL" != "https://pypi.python.org/" ]] || \ [[ "$PYPI_INDEX_URL" != "https://pypi.python.org/simple" ]]; then # the funky looking regexp just extracts the hostname, excluding port # to be used as a trusted-host. mkdir -p /root/pip echo "[global]" > /root/pip/pip.conf echo "index = $PYPI_URL" >> /root/pip/pip.conf echo "index-url = $PYPI_INDEX_URL" >> /root/pip/pip.conf echo "trusted-host = $(echo $PYPI_URL | perl -pe 's|^.*?://(.*?)(:.*?)?/.*$|$1|')" >> /root/pip/pip.conf mkdir -p /root/.pip echo "[global]" > /root/.pip/pip.conf echo "index = $PYPI_URL" >> /root/.pip/pip.conf echo "index-url = $PYPI_INDEX_URL" >> /root/.pip/pip.conf echo "trusted-host = $(echo $PYPI_URL | perl -pe 's|^.*?://(.*?)(:.*?)?/.*$|$1|')" >> /root/.pip/pip.conf echo "Using custom pip.conf: " cat /root/pip/pip.conf cat /root/.pip/pip.conf fi cd $WORKDIR Loading