Skip to content

Commit 992ab4a

Browse files
committed
Merge pull request docker-library#17 from infosiftr/fix-update
Fix update.sh to not mistakenly capture RCs (and thus push 3.4 down to 3.4.1, since 3.4.2 isn't actually out yet)
2 parents 92eaf93 + 9cdb6ee commit 992ab4a

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

3.4/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ WORKDIR /usr/src/python
1212
# > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK.
1313
ENV LANG C.UTF-8
1414

15-
ENV PYTHON_VERSION 3.4.2
15+
ENV PYTHON_VERSION 3.4.1
1616

1717
RUN curl -SL "https://www.python.org/ftp/python/$PYTHON_VERSION/Python-$PYTHON_VERSION.tar.xz" \
1818
| tar -xJ --strip-components=1

3.4/onbuild/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.4.2
1+
FROM python:3.4.1
22

33
RUN mkdir -p /usr/src/app
44
WORKDIR /usr/src/app

update.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ fi
1010
versions=( "${versions[@]%/}" )
1111

1212
for version in "${versions[@]}"; do
13-
fullVersion="$(curl -sSL 'https://www.python.org/ftp/python/' | grep '<a href="'"$version." | sed -r 's!.*<a href="([^"/]+)/?".*!\1!' | sort -V | tail -1)"
13+
# <span class="release-number"><a href="/downloads/release/python-278/">Python 2.7.8</a></span>
14+
# <span class="release-number"><a href="/downloads/release/python-341/">Python 3.4.1</a></span>
15+
fullVersion="$(curl -sSL 'https://www.python.org/downloads/' | awk -F 'Python |</a>' '/<span class="release-number"><a[^>]+>Python '"$version"'./ { print $2 }' | sort -V | tail -1)"
1416
(
1517
set -x
1618
sed -ri 's/^(ENV PYTHON_VERSION) .*/\1 '"$fullVersion"'/' "$version/Dockerfile"

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy