8000 Add target windows ltsc2019 · docker-library/python@0195406 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0195406

Browse files
committed
Add target windows ltsc2019
1 parent 73bc141 commit 0195406

File tree

8 files changed

+471
-4
lines changed

8 files changed

+471
-4
lines changed

.appveyor.yml

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,49 @@
11
version: build-{build}.{branch}
2-
image: Visual Studio 2019
32

43
environment:
54
matrix:
5+
- version: 3.9-rc
6+
variant: windowsservercore-ltsc2019
7+
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
68
- version: 3.9-rc
79
variant: windowsservercore-ltsc2016
10+
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
811
- version: 3.9-rc
912
variant: windowsservercore-1809
13+
APPVEYOR_BUILD_WORKER_IMAGE: < 8000 span class="pl-s">Visual Studio 2019
14+
- version: 3.8
15+
variant: windowsservercore-ltsc2019
16+
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
1017
- version: 3.8
1118
variant: windowsservercore-ltsc2016
19+
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
1220
- version: 3.8
1321
variant: windowsservercore-1809
22+
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
23+
- version: 3.7
24+
variant: windowsservercore-ltsc2019
25+
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
1426
- version: 3.7
1527
variant: windowsservercore-ltsc2016
28+
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
1629
- version: 3.7
1730
variant: windowsservercore-1809
31+
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
32+
- version: 3.6
33+
variant: windowsservercore-ltsc2019
34+
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
35+
- version: 3.5
36+
variant: windowsservercore-ltsc2019
37+
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
38+
- version: 2.7
39+
variant: windowsservercore-ltsc2019
40+
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
1841
- version: 2.7
1942
variant: windowsservercore-ltsc2016
43+
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
2044
- version: 2.7
2145
variant: windowsservercore-1809
46+
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
2247

2348
install:
2449
- ps: |
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
#
2+
# NOTE: THIS DOCKERFILE IS GENERATED VIA "update.sh"
3+
#
4+
# PLEASE DO NOT EDIT IT DIRECTLY.
5+
#
6+
7+
FROM mcr.microsoft.com/windows/servercore:ltsc2019
8+
9+
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]
10+
11+
ENV PYTHON_VERSION 2.7.17
12+
ENV PYTHON_RELEASE 2.7.17
13+
14+
RUN $url = ('https://www.python.org/ftp/python/{0}/python-{1}.amd64.msi' -f $env:PYTHON_RELEASE, $env:PYTHON_VERSION); \
15+
Write-Host ('Downloading {0} ...' -f $url); \
16+
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; \
17+
Invoke-WebRequest -Uri $url -OutFile 'python.msi'; \
18+
\
19+
Write-Host 'Installing ...'; \
20+
# https://www.python.org/download/releases/2.4/msi/
21+
Start-Process msiexec -Wait \
22+
-ArgumentList @( \
23+
'/i', \
24+
'python.msi', \
25+
'/quiet', \
26+
'/qn', \
27+
'TARGETDIR=C:\Python', \
28+
'ALLUSERS=1', \
29+
'ADDLOCAL=DefaultFeature,Extensions,TclTk,Tools,PrependPath' \
30+
); \
31+
\
32+
# the installer updated PATH, so we should refresh our local value
33+
$env:PATH = [Environment]::GetEnvironmentVariable('PATH', [EnvironmentVariableTarget]::Machine); \
34+
\
35+
Write-Host 'Verifying install ...'; \
36+
Write-Host ' python --version'; python --version; \
37+
\
38+
Write-Host 'Removing ...'; \
39+
Remove-Item python.msi -Force; \
40+
\
41+
Write-Host 'Complete.'
42+
43+
# if this is called "PIP_VERSION", pip explodes with "ValueError: invalid truth value '<VERSION>'"
44+
ENV PYTHON_PIP_VERSION 19.3.1
45+
# https://github.com/pypa/get-pip
46+
ENV PYTHON_GET_PIP_URL https://github.com/pypa/get-pip/raw/ffe826207a010164265d9cc807978e3604d18ca0/get-pip.py
47+
ENV PYTHON_GET_PIP_SHA256 b86f36cc4345ae87bfd4f10ef6b2dbfa7a872fbff70608a1e43944d283fd0eee
48+
49+
RUN Write-Host ('Downloading get-pip.py ({0}) ...' -f $env:PYTHON_GET_PIP_URL); \
50+
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; \
51+
Invoke-WebRequest -Uri $env:PYTHON_GET_PIP_URL -OutFile 'get-pip.py'; \
52+
Write-Host ('Verifying sha256 ({0}) ...' -f $env:PYTHON_GET_PIP_SHA256); \
53+
if ((Get-FileHash 'get-pip.py' -Algorithm sha256).Hash -ne $env:PYTHON_GET_PIP_SHA256) { \
54+
Write-Host 'FAILED!'; \
55+
exit 1; \
56+
}; \
57+
\
58+
Write-Host ('Installing pip=={0} ...' -f $env:PYTHON_PIP_VERSION); \
59+
python get-pip.py \
60+
--disable-pip-version-check \
61+
--no-cache-dir \
62+
('pip=={0}' -f $env:PYTHON_PIP_VERSION) \
63+
; \
64+
Remove-Item get-pip.py -Force; \
65+
\
66+
Write-Host 'Verifying pip install ...'; \
67+
pip --version; \
68+
\
69+
Write-Host 'Complete.'
70+
71+
# install "virtualenv", since the vast majority of users of this image will want it
72+
RUN pip install --no-cache-dir virtualenv
73+
74+
CMD ["python"]
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
#
2+
# NOTE: THIS DOCKERFILE IS GENERATED VIA "update.sh"
3+
#
4+
# PLEASE DO NOT EDIT IT DIRECTLY.
5+
#
6+
7+
FROM mcr.microsoft.com/windows/servercore:ltsc2019
8+
9+
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]
10+
11+
ENV PYTHON_VERSION 3.5.9
12+
ENV PYTHON_RELEASE 3.5.9
13+
14+
RUN $url = ('https://www.python.org/ftp/python/{0}/python-{1}-amd64.exe' -f $env:PYTHON_RELEASE, $env:PYTHON_VERSION); \
15+
Write-Host ('Downloading {0} ...' -f $url); \
16+
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; \
17+
Invoke-WebRequest -Uri $url -OutFile 'python.exe'; \
18+
\
19+
Write-Host 'Installing ...'; \
20+
# https://docs.python.org/3.5/using/windows.html#installing-without-ui
21+
Start-Process python.exe -Wait \
22+
-ArgumentList @( \
23+
'/quiet', \
24+
'InstallAllUsers=1', \
25+
'TargetDir=C:\Python', \
26+
'PrependPath=1', \
27+
'Shortcuts=0', \
28+
'Include_doc=0', \
29+
'Include_pip=0', \
30+
'Include_test=0' \
31+
); \
32+
\
33+
# the installer updated PATH, so we should refresh our local value
34+
$env:PATH = [Environment]::GetEnvironmentVariable('PATH', [EnvironmentVariableTarget]::Machine); \
35+
\
36+
Write-Host 'Verifying install ...'; \
37+
Write-Host ' python --version'; python --version; \
38+
\
39+
Write-Host 'Removing ...'; \
40+
Remove-Item python.exe -Force; \
41+
\
42+
Write-Host 'Complete.'
43+
44+
# if this is called "PIP_VERSION", pip explodes with "ValueError: invalid truth value '<VERSION>'"
45+
ENV PYTHON_PIP_VERSION 19.3.1
46+
# https://github.com/pypa/get-pip
47+
ENV PYTHON_GET_PIP_URL https://github.com/pypa/get-pip/raw/ffe826207a010164265d9cc807978e3604d18ca0/get-pip.py
48+
ENV PYTHON_GET_PIP_SHA256 b86f36cc4345ae87bfd4f10ef6b2dbfa7a872fbff70608a1e43944d283fd0eee
49+
50+
RUN Write-Host ('Downloading get-pip.py ({0}) ...' -f $env:PYTHON_GET_PIP_URL); \
51+
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; \
52+
Invoke-WebRequest -Uri $env:PYTHON_GET_PIP_URL -OutFile 'get-pip.py'; \
53+
Write-Host ('Verifying sha256 ({0}) ...' -f $env:PYTHON_GET_PIP_SHA256); \
54+
if ((Get-FileHash 'get-pip.py' -Algorithm sha256).Hash -ne $env:PYTHON_GET_PIP_SHA256) { \
55+
Write-Host 'FAILED!'; \
56+
exit 1; \
57+
}; \
58+
\
59+
Write-Host ('Installing pip=={0} ...' -f $env:PYTHON_PIP_VERSION); \
60+
python get-pip.py \
61+
--disable-pip-version-check \
62+
--no-cache-dir \
63+
('pip=={0}' -f $env:PYTHON_PIP_VERSION) \
64+
; \
65+
Remove-Item get-pip.py -Force; \
66+
\
67+
Write-Host 'Verifying pip install ...'; \
68+
pip --version; \
69+
\
70+
Write-Host 'Complete.'
71+
72+
CMD ["python"]
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
#
2+
# NOTE: THIS DOCKERFILE IS GENERATED VIA "update.sh"
3+
#
4+
# PLEASE DO NOT EDIT IT DIRECTLY.
5+
#
6+
7+
FROM mcr.microsoft.com/windows/servercore:ltsc2019
8+
9+
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]
10+
11+
ENV PYTHON_VERSION 3.6.10
12+
ENV PYTHON_RELEASE 3.6.10
13+
14+
RUN $url = ('https://www.python.org/ftp/python/{0}/python-{1}-amd64.exe' -f $env:PYTHON_RELEASE, $env:PYTHON_VERSION); \
15+
Write-Host ('Downloading {0} ...' -f $url); \
16+
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; \
17+
Invoke-WebRequest -Uri $url -OutFile 'python.exe'; \
18+
\
19+
Write-Host 'Installing ...'; \
20+
# https://docs.python.org/3.5/using/windows.html#installing-without-ui
21+
Start-Process python.exe -Wait \
22+
-ArgumentList @( \
23+
'/quiet', \
24+
'InstallAllUsers=1', \
25+
'TargetDir=C:\Python', \
26+
'PrependPath=1', \
27+
'Shortcuts=0', \
28+
'Include_doc=0', \
29+
'Include_pip=0', \
30+
'Include_test=0' \
31+
); \
32+
\
33+
# the installer updated PATH, so we should refresh our local value
34+
$env:PATH = [Environment]::GetEnvironmentVariable('PATH', [EnvironmentVariableTarget]::Machine); \
35+
\
36+
Write-Host 'Verifying install ...'; \
37+
Write-Host ' python --version'; python --version; \
38+
\
39+
Write-Host 'Removing ...'; \
40+
Remove-Item python.exe -Force; \
41+
\
42+
Write-Host 'Complete.'
43+
44+
# if this is called "PIP_VERSION", pip explodes with "ValueError: invalid truth value '<VERSION>'"
45+
ENV PYTHON_PIP_VERSION 19.3.1
46+
# https://github.com/pypa/get-pip
47+
ENV PYTHON_GET_PIP_URL https://github.com/pypa/get-pip/raw/ffe826207a010164265d9cc807978e3604d18ca0/get-pip.py
48+
ENV PYTHON_GET_PIP_SHA256 b86f36cc4345ae87bfd4f10ef6b2dbfa7a872fbff70608a1e43944d283fd0eee
49+
50+
RUN Write-Host ('Downloading get-pip.py ({0}) ...' -f $env:PYTHON_GET_PIP_URL); \
51+
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; \
52+
Invoke-WebRequest -Uri $env:PYTHON_GET_PIP_URL -OutFile 'get-pip.py'; \
53+
Write-Host ('Verifying sha256 ({0}) ...' -f $env:PYTHON_GET_PIP_SHA256); \
54+
if ((Get-FileHash 'get-pip.py' -Algorithm sha256).Hash -ne $env:PYTHON_GET_PIP_SHA256) { \
55+
Write-Host 'FAILED!'; \
56+
exit 1; \
57+
}; \
58+
\
59+
Write-Host ('Installing pip=={0} ...' -f $env:PYTHON_PIP_VERSION); \
60+
python get-pip.py \
61+
--disable-pip-version-check \
62+
--no-cache-dir \
63+
('pip=={0}' -f $env:PYTHON_PIP_VERSION) \
64+
; \
65+
Remove-Item get-pip.py -Force; \
66+
\
67+
Write-Host 'Verifying pip install ...'; \
68+
pip --version; \
69+
\
70+
Write-Host 'Complete.'
71+
72+
CMD ["python"]
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
#
2+
# NOTE: THIS DOCKERFILE IS GENERATED VIA "update.sh"
3+
#
4+
# PLEASE DO NOT EDIT IT DIRECTLY.
5+
#
6+
7+
FROM mcr.microsoft.com/windows/servercore:ltsc2019
8+
9+
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]
10+
11+
ENV PYTHON_VERSION 3.7.6
12+
ENV PYTHON_RELEASE 3.7.6
13+
14+
RUN $url = ('https://www.python.org/ftp/python/{0}/python-{1}-amd64.exe' -f $env:PYTHON_RELEASE, $env:PYTHON_VERSION); \
15+
Write-Host ('Downloading {0} ...' -f $url); \
16+
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; \
17+
Invoke-WebRequest -Uri $url -OutFile 'python.exe'; \
18+
\
19+
Write-Host 'Installing ...'; \
20+
# https://docs.python.org/3.5/using/windows.html#installing-without-ui
21+
Start-Process python.exe -Wait \
22+
-ArgumentList @( \
23+
'/quiet', \
24+
'InstallAllUsers=1', \
25+
'TargetDir=C:\Python', \
26+
'PrependPath=1', \
27+
'Shortcuts=0', \
28+
'Include_doc=0', \
29+
'Include_pip=0', \
30+
'Include_test=0' \
31+
); \
32+
\
33+
# the installer updated PATH, so we should refresh our local value
34+
$env:PATH = [Environment]::GetEnvironmentVariable('PATH', [EnvironmentVariableTarget]::Machine); \
35+
\
36+
Write-Host 'Verifying install ...'; \
37+
Write-Host ' python --version'; python --version; \
38+
\
39+
Write-Host 'Removing ...'; \
40+
Remove-Item python.exe -Force; \
41+
\
42+
Write-Host 'Complete.'
43+
44+
# if this is called "PIP_VERSION", pip explodes with "ValueError: invalid truth value '<VERSION>'"
45+
ENV PYTHON_PIP_VERSION 19.3.1
46+
# https://github.com/pypa/get-pip
47+
ENV PYTHON_GET_PIP_URL https://github.com/pypa/get-pip/raw/ffe826207a010164265d9cc807978e3604d18ca0/get-pip.py
48+
ENV PYTHON_GET_PIP_SHA256 b86f36cc4345ae87bfd4f10ef6b2dbfa7a872fbff70608a1e43944d283fd0eee
49+
50+
RUN Write-Host ('Downloading get-pip.py ({0}) ...' -f $env:PYTHON_GET_PIP_URL); \
51+
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; \
52+
Invoke-WebRequest -Uri $env:PYTHON_GET_PIP_URL -OutFile 'get-pip.py'; \
53+
Write-Host ('Verifying sha256 ({0}) ...' -f $env:PYTHON_GET_PIP_SHA256); \
54+
if ((Get-FileHash 'get-pip.py' -Algorithm sha256).Hash -ne $env:PYTHON_GET_PIP_SHA256) { \
55+
Write-Host 'FAILED!'; \
56+
exit 1; \
57+
}; \
58+
\
59+
Write-Host ('Installing pip=={0} ...' -f $env:PYTHON_PIP_VERSION); \
60+
python get-pip.py \
61+
--disable-pip-version-check \
62+
--no-cache-dir \
63+
('pip=={0}' -f $env:PYTHON_PIP_VERSION) \
64+
; \
65+
Remove-Item get-pip.py -Force; \
66+
\
67+
Write-Host 'Verifying pip install ...'; \
68+
pip --version; \
69+
\
70+
Write-Host 'Complete.'
71+
72+
CMD ["python"]

0 commit comments

Comments
 (0)
0