-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Add "windowsservercore" variants #142
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Ok, this is fun. Python 3.3 and 3.4 use an MSI for Windows, but 3.5 and 3.6 no longer provide the MSI and instead provide EXE-based installers (which are more well-documented than the MSIs). I'm thinking I'm just going to remove 3.3 and 3.4 for now, but still pondering. |
61f535a
to
faf2e59
Compare
On the other hand, Python 2.7 uses an MSI as well, so we'd get three versions by implementing an MSI template for older releases. |
59a3044
to
287e4dd
Compare
Python 3.4.5 no longer supports Windows (https://www.python.org/ftp/python/3.4.5/). |
Same story with Python 3.3.6 (https://www.python.org/ftp/python/3.3.6/). |
287e4dd
to
2026906
Compare
Whoo, still supported for Python 2.7.12 (https://www.python.org/ftp/python/2.7.12/)! |
$ docker run --rm ee48833ea1e3 python -c 'import sys; print sys.version'
2.7.12 (v2.7.12:d33e0cf91556, Jun 27 2016, 15:24:40) [MSC v.1500 64 bit (AMD64)] |
7222c4f
to
93991da
Compare
93991da
to
1ad743d
Compare
Ok, I think this is ready. This includes Python 2.7, 3.5, and 3.6, and each has The only hitch I've seen is the following on 3.5 and 3.6 (although
|
Image sizes, for comparison/interest: $ docker images test/python
REPOSITORY TAG IMAGE ID CREATED SIZE
test/python 3.6 a0b502a14f0c About a minute ago 7.95 GB
test/python 3.5 302730681342 About a minute ago 7.915 GB
test/python 2.7 38afc05150a7 8 minutes ago 7.962 GB
$ docker images microsoft/windowsservercore
REPOSITORY TAG IMAGE ID CREATED SIZE
microsoft/windowsservercore latest 02cb7f65d61b 9 weeks ago 7.764 GB |
For completeness: $ ./update.sh
+ sed -ri -e 's/^(ENV GPG_KEY) .*/\1 C01E1CAD5EA2C4F0B8E3571504C367C218ADD4FF/' -e 's/^(ENV PYTHON_VERSION) .*/\1 2.7.12/' -e 's/^(ENV PYTHON_RELEASE) .*/\1 2.7.12/' -e 's/^(ENV PYTHON_PIP_VERSION) .*/\1 8.1.2/' -e 's/^(FROM python):.*/\1:2.7/' 2.7/Dockerfile 2.7/alpine/Dockerfile 2.7/onbuild/Dockerfile 2.7/slim/Dockerfile 2.7/wheezy/Dockerfile 2.7/windows/windowsservercore/Dockerfile
+ sed -ri -e 's/^(ENV GPG_KEY) .*/\1 26DEA9D4613391EF3E25C9FF0A5B101836580288/' -e 's/^(ENV PYTHON_VERSION) .*/\1 3.3.6/' -e 's/^(ENV PYTHON_RELEASE) .*/\1 3.3.6/' -e 's/^(ENV PYTHON_PIP_VERSION) .*/\1 8.1.2/' -e 's/^(FROM python):.*/\1:3.3/' 3.3/Dockerfile 3.3/alpine/Dockerfile 3.3/onbuild/Dockerfile 3.3/slim/Dockerfile 3.3/wheezy/Dockerfile
+ sed -ri -e 's/^(ENV GPG_KEY) .*/\1 97FC712E4C024BBEA48A61ED3A5CA953F73C700D/' -e 's/^(ENV PYTHON_VERSION) .*/\1 3.4.5/' -e 's/^(ENV PYTHON_RELEASE) .*/\1 3.4.5/' -e 's/^(ENV PYTHON_PIP_VERSION) .*/\1 8.1.2/' -e 's/^(FROM python):.*/\1:3.4/' 3.4/Dockerfile 3.4/alpine/Dockerfile 3.4/onbuild/Dockerfile 3.4/slim/Dockerfile 3.4/wheezy/Dockerfile
+ sed -ri -e 's/^(ENV GPG_KEY) .*/\1 97FC712E4C024BBEA48A61ED3A5CA953F73C700D/' -e 's/^(ENV PYTHON_VERSION) .*/\1 3.5.2/' -e 's/^(ENV PYTHON_RELEASE) .*/\1 3.5.2/' -e 's/^(ENV PYTHON_PIP_VERSION) .*/\1 8.1.2/' -e 's/^(FROM python):.*/\1:3.5/' 3.5/Dockerfile 3.5/alpine/Dockerfile 3.5/onbuild/Dockerfile 3.5/slim/Dockerfile 3.5/windows/windowsservercore/Dockerfile
warning: cannot find 3.6 (alpha/beta/rc?)
$ ./generate-stackbrew-library.sh
# this file is generated via https://github.com/docker-library/python/blob/1ad743decae71db424840812eb8dd49557aed9d0/generate-stackbrew-library.sh
Maintainers: Tianon Gravi <[email protected]> (@tianon),
Joseph Ferguson <[email protected]> (@yosifkit)
GitRepo: https://github.com/docker-library/python.git
Tags: 2.7.12, 2.7, 2
GitCommit: f1bc9f790605ecf0dabce4c24ef9ee5ce205e496
Directory: 2.7
Tags: 2.7.12-slim, 2.7-slim, 2-slim
GitCommit: 2664a9b68104d35c99aa79c56eea24423e6f9807
Directory: 2.7/slim
Tags: 2.7.12-alpine, 2.7-alpine, 2-alpine
GitCommit: 2664a9b68104d35c99aa79c56eea24423e6f9807
Directory: 2.7/alpine
Tags: 2.7.12-wheezy, 2.7-wheezy, 2-wheezy
GitCommit: f1bc9f790605ecf0dabce4c24ef9ee5ce205e496
Directory: 2.7/wheezy
Tags: 2.7.12-onbuild, 2.7-onbuild, 2-onbuild
GitCommit: 7663560df7547e69d13b1b548675502f4e0917d1
Directory: 2.7/onbuild
Tags: 2.7.12-windowsservercore, 2.7-windowsservercore, 2-windowsservercore
GitCommit: 1ad743decae71db424840812eb8dd49557aed9d0
Directory: 2.7/windows/windowsservercore
Constraints: windowsservercore
Tags: 3.3.6, 3.3
GitCommit: 9a9021f2134d953165b31d98cacb95aa34076f90
Directory: 3.3
Tags: 3.3.6-slim, 3.3-slim
GitCommit: 9a9021f2134d953165b31d98cacb95aa34076f90
Directory: 3.3/slim
Tags: 3.3.6-alpine, 3.3-alpine
GitCommit: 9a9021f2134d953165b31d98cacb95aa34076f90
Directory: 3.3/alpine
Tags: 3.3.6-wheezy, 3.3-wheezy
GitCommit: 9a9021f2134d953165b31d98cacb95aa34076f90
Directory: 3.3/wheezy
Tags: 3.3.6-onbuild, 3.3-onbuild
GitCommit: 9a9021f2134d953165b31d98cacb95aa34076f90
Directory: 3.3/onbuild
Tags: 3.4.5, 3.4
GitCommit: 9a9021f2134d953165b31d98cacb95aa34076f90
Directory: 3.4
Tags: 3.4.5-slim, 3.4-slim
GitCommit: 9a9021f2134d953165b31d98cacb95aa34076f90
Directory: 3.4/slim
Tags: 3.4.5-alpine, 3.4-alpine
GitCommit: 9a9021f2134d953165b31d98cacb95aa34076f90
Directory: 3.4/alpine
Tags: 3.4.5-wheezy, 3.4-wheezy
GitCommit: 9a9021f2134d953165b31d98cacb95aa34076f90
Directory: 3.4/wheezy
Tags: 3.4.5-onbuild, 3.4-onbuild
GitCommit: 9a9021f2134d953165b31d98cacb95aa34076f90
Directory: 3.4/onbuild
Tags: 3.5.2, 3.5, 3, latest
GitCommit: 9a9021f2134d953165b31d98cacb95aa34076f90
Directory: 3.5
Tags: 3.5.2-slim, 3.5-slim, 3-slim, slim
GitCommit: 9a9021f2134d953165b31d98cacb95aa34076f90
Directory: 3.5/slim
Tags: 3.5.2-alpine, 3.5-alpine, 3-alpine, alpine
GitCommit: 9a9021f2134d953165b31d98cacb95aa34076f90
Directory: 3.5/alpine
Tags: 3.5.2-onbuild, 3.5-onbuild, 3-onbuild, onbuild
GitCommit: 9a9021f2134d953165b31d98cacb95aa34076f90
Directory: 3.5/onbuild
Tags: 3.5.2-windowsservercore, 3.5-windowsservercore, 3-windowsservercore, windowsservercore
GitCommit: 1ad743decae71db424840812eb8dd49557aed9d0
Directory: 3.5/windows/windowsservercore
Constraints: windowsservercore
Tags: 3.6.0a3, 3.6
GitCommit: f1bc9f790605ecf0dabce4c24ef9ee5ce205e496
Directory: 3.6
Tags: 3.6.0a3-slim, 3.6-slim
GitCommit: f1bc9f790605ecf0dabce4c24ef9ee5ce205e496
Directory: 3.6/slim
Tags: 3.6.0a3-alpine, 3.6-alpine
GitCommit: f1bc9f790605ecf0dabce4c24ef9ee5ce205e496
Directory: 3.6/alpine
Tags: 3.6.0a3-onbuild, 3.6-onbuild
GitCommit: 635ea5d58b53d165f7bedae90f8933c720a58150
Directory: 3.6/onbuild
Tags: 3.6.0a3-windowsservercore, 3.6-windowsservercore
GitCommit: 1ad743decae71db424840812eb8dd49557aed9d0
Directory: 3.6/windows/windowsservercore
Constraints: windowsservercore $ diff -u <(bashbrew cat python) <(bashbrew cat <(./generate-stackbrew-library.sh))
--- /dev/fd/63 2016-08-18 15:38:27.692596880 -0700
+++ /dev/fd/62 2016-08-18 15:38:27.693596851 -0700
@@ -21,6 +21,11 @@
GitCommit: 7663560df7547e69d13b1b548675502f4e0917d1
Directory: 2.7/onbuild
+Tags: 2.7.12-windowsservercore, 2.7-windowsservercore, 2-windowsservercore
+GitCommit: 1ad743decae71db424840812eb8dd49557aed9d0
+Directory: 2.7/windows/windowsservercore
+Constraints: windowsservercore
+
Tags: 3.3.6, 3.3
GitCommit: 9a9021f2134d953165b31d98cacb95aa34076f90
Directory: 3.3
@@ -77,6 +82,11 @@
GitCommit: 9a9021f2134d953165b31d98cacb95aa34076f90
Directory: 3.5/onbuild
+Tags: 3.5.2-windowsservercore, 3.5-windowsservercore, 3-windowsservercore, windowsservercore
+GitCommit: 1ad743decae71db424840812eb8dd49557aed9d0
+Directory: 3.5/windows/windowsservercore
+Constraints: windowsservercore
+
Tags: 3.6.0a3, 3.6
GitCommit: f1bc9f790605ecf0dabce4c24ef9ee5ce205e496
Directory: 3.6
@@ -92,3 +102,8 @@
Tags: 3.6.0a3-onbuild, 3.6-onbuild
GitCommit: 635ea5d58b53d165f7bedae90f8933c720a58150
Directory: 3.6/onbuild
+
+Tags: 3.6.0a3-windowsservercore, 3.6-windowsservercore
+GitCommit: 1ad743decae71db424840812eb8dd49557aed9d0
+Directory: 3.6/windows/windowsservercore
+Constraints: windowsservercore |
LGTM |
- `docker`: 1.12.1 - `drupal`: 8.2.0-beta2 - `memcached`: 1.4.31 - `mysql`: handle empty `initdb` directory (docker-library/mysql#200) - `percona`: 5.6.32, 5.5.51 - `php`: 5.6.25 - `python`: 3.6.0a4 (docker-library/python#144), `windowsservercore` (docker-library/python#142) - `rabbitmq`: fix SSL/`ERL_ARGS` (docker-library/rabbitmq#103) - `rocket.chat`: 0.37.1
Still a bit of TODO here, specifically around
pip
version: